提交 6866b390 编写于 作者: F Fabian Frederick 提交者: 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: NFabian Frederick <fabf@skynet.be>
Link: http://lkml.kernel.org/r/1402341618-10674-1-git-send-email-fabf@skynet.beSigned-off-by: NBorislav Petkov <bp@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册