diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2015-09-21 15:33:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 03:57:00 +0200 |
commit | 4346f9a01fe0846d1399292b53b24f6fde5bd2d9 (patch) | |
tree | eb784ebc4c3495ea4ad9252ca53b9aab3eb7aace /drivers/staging/lustre/lustre/osc/lproc_osc.c | |
parent | staging/rdma: Kconfig change STAGING_RDMA to be tristate. (diff) | |
download | linux-dev-4346f9a01fe0846d1399292b53b24f6fde5bd2d9.tar.xz linux-dev-4346f9a01fe0846d1399292b53b24f6fde5bd2d9.zip |
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>
Diffstat (limited to 'drivers/staging/lustre/lustre/osc/lproc_osc.c')
-rw-r--r-- | drivers/staging/lustre/lustre/osc/lproc_osc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/lustre/lustre/osc/lproc_osc.c b/drivers/staging/lustre/lustre/osc/lproc_osc.c index c504d1503fda..f3eb39fe8535 100644 --- a/drivers/staging/lustre/lustre/osc/lproc_osc.c +++ b/drivers/staging/lustre/lustre/osc/lproc_osc.c @@ -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; |