Commit 4346f9a0 authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Greg Kroah-Hartman

staging: lustre: remove invalid check

Unsigned cannot be negative.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b2d023af
......@@ -451,9 +451,6 @@ static ssize_t resend_count_store(struct kobject *kobj,
if (rc)
return rc;
if (val < 0)
return -EINVAL;
atomic_set(&obd->u.cli.cl_resends, val);
return count;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment