diff options
author | Vasiliy Kulikov <segooon@gmail.com> | 2010-09-12 22:56:51 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-16 23:37:34 +0400 |
commit | cae16a1742ad3cc19f15e78b821b94448e330ad9 (patch) | |
tree | 0773fedbb06298a3827e0c765b1a95768550d701 /drivers/staging | |
parent | 3850a8ae43a1d93cda1f9a9132d41b98d825f6a3 (diff) | |
download | linux-cae16a1742ad3cc19f15e78b821b94448e330ad9.tar.xz |
staging: crystalhd: fix signed bug
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/crystalhd/crystalhd_lnx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/crystalhd/crystalhd_lnx.h b/drivers/staging/crystalhd/crystalhd_lnx.h index c951e43cbb3d..a2b5a56be6dd 100644 --- a/drivers/staging/crystalhd/crystalhd_lnx.h +++ b/drivers/staging/crystalhd/crystalhd_lnx.h @@ -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 */ |