Browse Source

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>
Jeff Mahoney 16 years ago
parent
commit
f357e6ecbc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/rtl8192su/ieee80211/ieee80211_module.c

+ 1 - 1
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;