mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d0f69b5a66
commit
4cba1972bb
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user