staging: crystalhd: fix signed bug
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 12 Sep 2010 18:56:51 +0000 (22:56 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Sep 2010 19:37:34 +0000 (12:37 -0700)
chd_dec_major is unsigned, so check chd_dec_major < 0 doesn't make sense.
Since it is used as signed, declare it as int.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/crystalhd/crystalhd_lnx.h

index c951e43cbb3db9ccb3e3d17fe4fdc4ef6e3d4c1a..a2b5a56be6ddd4b817904ea3961917b59f0b4faa 100644 (file)
@@ -76,7 +76,7 @@ struct crystalhd_adp {
        spinlock_t              lock;
 
        /* API Related */
-       unsigned int            chd_dec_major;
+       int             chd_dec_major;
        unsigned int            cfg_users;
 
        struct crystalhd_ioctl_data     *idata_free_head;       /* ioctl data pool */