EDAC, edac_module.c: Remove unnecessary test on unsigned value
unsigned long value is never < 0. Cc: Doug Thompson <dougthompson@xmission.com> Signed-off-by: Fabian Frederick <fabf@skynet.be> Link: http://lkml.kernel.org/r/1402341618-10674-1-git-send-email-fabf@skynet.be Signed-off-by: Borislav Petkov <bp@suse.de>
This commit is contained in:
parent
a497c3ba1d
commit
6866b39056
|
@ -28,7 +28,7 @@ static int edac_set_debug_level(const char *buf, struct kernel_param *kp)
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (val < 0 || val > 4)
|
if (val > 4)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
return param_set_int(buf, kp);
|
return param_set_int(buf, kp);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user