EDAC, edac_module.c: Remove unnecessary test on unsigned value

unsigned long value is never < 0.

Cc: Doug Thompson <[email protected]>
Signed-off-by: Fabian Frederick <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Borislav Petkov <[email protected]>
This commit is contained in:
Fabian Frederick 2014-06-09 21:20:18 +02:00 • committed by Borislav Petkov
commit 6866b39056

View file

@ -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);