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

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: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b2d023af
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;