summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-09 21:20:18 +0200
committerBorislav Petkov <bp@suse.de>2014-06-24 15:13:08 +0200
commit6866b390562b2c948c6f6fc2a5c103f090a02e01 (patch)
treef709f28fbcb25244427dca8ead9e7ab5929af462 /drivers/edac
parenta497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee (diff)
downloadlinux-6866b390562b2c948c6f6fc2a5c103f090a02e01.tar.bz2
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>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/edac_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/edac_module.c b/drivers/edac/edac_module.c
index a66941fea5a4..e6d1691dfa45 100644
--- a/drivers/edac/edac_module.c
+++ b/drivers/edac/edac_module.c
@@ -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);