Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f357e6ec authored by Jeff Mahoney's avatar Jeff Mahoney Committed by Greg Kroah-Hartman
Browse files

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: default avatarJeff Mahoney <jeffm@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 859ebd97
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;