diff options
| author | Mark Hounschell <markh@compro.net> | 2014-05-21 13:02:52 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-24 02:10:49 +0900 |
| commit | e54766c08a7b41b5ac7f90e84060c3da3fddf6e4 (patch) | |
| tree | b1e5d1208f7ab0b4d840be06d34258f6bc9b726a /drivers | |
| parent | 9140fcd655541fee5655701df05ab0b06653c24c (diff) | |
staging: dgap: fix smatch warn: unsigned var is never less than zero
This patch fixes a smatch warning about an unsigned
integer being tested for less than zero.
Signed-off-by: Mark Hounschell <markh@compro.net>
Tested-by: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/staging/dgap/dgap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgap/dgap.h b/drivers/staging/dgap/dgap.h index cd2150bf88f..650a4624d94 100644 --- a/drivers/staging/dgap/dgap.h +++ b/drivers/staging/dgap/dgap.h @@ -637,7 +637,7 @@ struct un_t { struct channel_t *un_ch; u32 un_time; u32 un_type; - u32 un_open_count; /* Counter of opens to port */ + int un_open_count; /* Counter of opens to port */ struct tty_struct *un_tty;/* Pointer to unit tty structure */ u32 un_flags; /* Unit flags */ wait_queue_head_t un_flags_wait; /* Place to sleep to wait on unit */ |
