sparc: vDSO: Silence an uninitialized variable warning

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

Fixes: 9a08862a5d ("vDSO for sparc")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Dan Carpenter 2018-10-13 13:26:53 +03:00 committed by David S. Miller
parent 776ca1543b
commit 62d6f3b7b8
1 changed files with 3 additions and 1 deletions

View File

@ -262,7 +262,9 @@ static __init int vdso_setup(char *s)
unsigned long val; unsigned long val;
err = kstrtoul(s, 10, &val); err = kstrtoul(s, 10, &val);
vdso_enabled = val; if (err)
return err; return err;
vdso_enabled = val;
return 0;
} }
__setup("vdso=", vdso_setup); __setup("vdso=", vdso_setup);