提交 f357e6ec 编写于 作者: J Jeff Mahoney 提交者: Greg Kroah-Hartman

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: NJeff Mahoney <jeffm@suse.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 859ebd97
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册