Commit 6866b390 authored by Fabian Frederick's avatar Fabian Frederick Committed by Borislav Petkov

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: default avatarFabian Frederick <fabf@skynet.be>
Link: http://lkml.kernel.org/r/1402341618-10674-1-git-send-email-fabf@skynet.beSigned-off-by: default avatarBorislav Petkov <bp@suse.de>
parent a497c3ba
......@@ -28,7 +28,7 @@ static int edac_set_debug_level(const char *buf, struct kernel_param *kp)
if (ret)
return ret;
if (val < 0 || val > 4)
if (val > 4)
return -EINVAL;
return param_set_int(buf, kp);
......
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