diff options
| author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-09-08 21:53:02 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-12 18:24:51 -0700 |
| commit | 4cba1972bb060cc4042b226ecb54d09ddfb9fb2d (patch) | |
| tree | a8cbd4cc4f5c76e51d57c1723215e4f2a745018e | |
| parent | d0f69b5a66c30350ed6e41eef72414ce8650face (diff) | |
| download | linux-4cba1972bb060cc4042b226ecb54d09ddfb9fb2d.tar.gz linux-4cba1972bb060cc4042b226ecb54d09ddfb9fb2d.tar.bz2 linux-4cba1972bb060cc4042b226ecb54d09ddfb9fb2d.zip | |
staging: lustre: lov: remove always false condition
The member qc_idx of struct if_quotactl is unsigned and hence it can
never be less than zero.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/lustre/lustre/lov/lov_obd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/lov/lov_obd.c b/drivers/staging/lustre/lustre/lov/lov_obd.c index 2a2fd8de055d..906503b05979 100644 --- a/drivers/staging/lustre/lustre/lov/lov_obd.c +++ b/drivers/staging/lustre/lustre/lov/lov_obd.c @@ -1487,7 +1487,7 @@ static int lov_iocontrol(unsigned int cmd, struct obd_export *exp, int len, struct obd_quotactl *oqctl; if (qctl->qc_valid == QC_OSTIDX) { - if (qctl->qc_idx < 0 || count <= qctl->qc_idx) + if (count <= qctl->qc_idx) return -EINVAL; tgt = lov->lov_tgts[qctl->qc_idx]; |
