Skip to content

Commit

Permalink
staging: crystalhd: fix signed bug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasiliy Kulikov authored and Greg Kroah-Hartman committed Sep 16, 2010
1 parent 3850a8a commit cae16a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/crystalhd/crystalhd_lnx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit cae16a1

Please sign in to comment.