]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
staging: dgap: fix smatch warn: unsigned var is never less than zero
authorMark Hounschell <markh@compro.net>
Wed, 21 May 2014 17:02:52 +0000 (13:02 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 17:10:49 +0000 (02:10 +0900)
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>
drivers/staging/dgap/dgap.h

index cd2150bf88f1cdfe8e0360b2d800d2bc2c1c6b83..650a4624d9400fef6724ef8596b2c5be740dfc00 100644 (file)
@@ -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 */