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/2038576

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Andrzej Hajda 2015-09-21 15:33:58 +02:00 committed by Greg Kroah-Hartman
parent b2d023af69
commit 4346f9a01f

View File

@ -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;