test_kmod: remove paranoid UINT_MAX check on uint range processing
[linux-block.git] / lib / test_kmod.c
index ff9148969b9233ba7502b992b026d31e100be497..67fc7b9f41e3944673e6a8d357b3c9bbdda074ce 100644 (file)
@@ -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);