Staging: rtl8192su: fixup size comparison warning
authorJeff Mahoney <jeffm@suse.com>
Tue, 4 Aug 2009 14:26:21 +0000 (10:26 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:16 +0000 (12:02 -0700)
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>
drivers/staging/rtl8192su/ieee80211/ieee80211_module.c

index 510e71e..68dc8fa 100644 (file)
@@ -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;