forked from Minki/linux
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:
parent
b2d023af69
commit
4346f9a01f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user