Commit 62d6f3b7 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

sparc: vDSO: Silence an uninitialized variable warning

Smatch complains that "val" would be uninitialized if kstrtoul() fails.

Fixes: 9a08862a ("vDSO for sparc")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 776ca154
......@@ -262,7 +262,9 @@ static __init int vdso_setup(char *s)
unsigned long val;
err = kstrtoul(s, 10, &val);
vdso_enabled = val;
if (err)
return err;
vdso_enabled = val;
return 0;
}
__setup("vdso=", vdso_setup);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment