From: Mark Hounschell Date: Wed, 21 May 2014 17:02:52 +0000 (-0400) Subject: staging: dgap: fix smatch warn: unsigned var is never less than zero X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e54766c08a7b41b5ac7f90e84060c3da3fddf6e4;p=linux-beck.git 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 Tested-by: Mark Hounschell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgap/dgap.h b/drivers/staging/dgap/dgap.h index cd2150bf88f1..650a4624d940 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 */