aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/crystalhd
diff options
context:
space:
mode:
authorVasiliy Kulikov <segooon@gmail.com>2010-09-12 22:56:51 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-16 12:37:34 -0700
commitcae16a1742ad3cc19f15e78b821b94448e330ad9 (patch)
tree0773fedbb06298a3827e0c765b1a95768550d701 /drivers/staging/crystalhd
parent3850a8ae43a1d93cda1f9a9132d41b98d825f6a3 (diff)
downloadlinaro-lsk-cae16a1742ad3cc19f15e78b821b94448e330ad9.tar.gz
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/crystalhd')
-rw-r--r--drivers/staging/crystalhd/crystalhd_lnx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/crystalhd/crystalhd_lnx.h b/drivers/staging/crystalhd/crystalhd_lnx.h
index c951e43cbb3..a2b5a56be6d 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 */