projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3850a8a
)
staging: crystalhd: fix signed bug
author
Vasiliy Kulikov
<segooon@gmail.com>
Sun, 12 Sep 2010 18:56:51 +0000
(22:56 +0400)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/crystalhd/crystalhd_lnx.h
b/drivers/staging/crystalhd/crystalhd_lnx.h
index c951e43cbb3db9ccb3e3d17fe4fdc4ef6e3d4c1a..a2b5a56be6ddd4b817904ea3961917b59f0b4faa 100644
(file)
--- 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 */