projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test_kmod: remove paranoid UINT_MAX check on uint range processing
[linux-block.git]
/
lib
/
test_kmod.c
diff --git
a/lib/test_kmod.c
b/lib/test_kmod.c
index ff9148969b9233ba7502b992b026d31e100be497..67fc7b9f41e3944673e6a8d357b3c9bbdda074ce 100644
(file)
--- a/
lib/test_kmod.c
+++ b/
lib/test_kmod.c
@@
-924,7
+924,7
@@
static int test_dev_config_update_uint_range(struct kmod_test_device *test_dev,
if (ret)
return ret;
- if (new < min || new >
max || new > UINT_MAX
)
+ if (new < min || new >
max
)
return -EINVAL;
mutex_lock(&test_dev->config_mutex);