diff options
author | Jeff Mahoney <jeffm@suse.com> | 2009-08-04 14:26:21 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 19:02:16 (GMT) |
commit | f357e6ecbc4696d11539df3fd604c8da59c1e6d1 (patch) | |
tree | 76bed21b4827d0bb09eb0027fb5325ca8d79997a /drivers/staging/rtl8192su/ieee80211/ieee80211_module.c | |
parent | 859ebd9748fb086a272bebe6cce4d8e6461dd7fc (diff) | |
download | linux-fsl-qoriq-f357e6ecbc4696d11539df3fd604c8da59c1e6d1.tar.xz |
Staging: rtl8192su: fixup size comparison warning
sizeof(val) returns type unsigned long. count is already unsigned long, so
just use that. This fixes a compile warning.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192su/ieee80211/ieee80211_module.c')
-rw-r--r-- | drivers/staging/rtl8192su/ieee80211/ieee80211_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192su/ieee80211/ieee80211_module.c b/drivers/staging/rtl8192su/ieee80211/ieee80211_module.c index 510e71e..68dc8fa 100644 --- a/drivers/staging/rtl8192su/ieee80211/ieee80211_module.c +++ b/drivers/staging/rtl8192su/ieee80211/ieee80211_module.c @@ -264,7 +264,7 @@ static int store_debug_level(struct file *file, const char *buffer, unsigned long count, void *data) { char buf[] = "0x00000000"; - unsigned long len = min(sizeof(buf) - 1, (u32)count); + unsigned long len = min(sizeof(buf) - 1, count); char *p = (char *)buf; unsigned long val; |