Commit 3f514c35 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Greg Kroah-Hartman
Browse files

staging: lustre: ptlrpc: remove unnecessary code



offset is an unsigned variable and, greater-than-or-equal-to-zero
comparison of an unsigned variable is always true.

Addresses-Coverity-ID: 1373919
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9f8e8caf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1761,7 +1761,7 @@ static u32 __req_capsule_offset(const struct req_capsule *pill,
		 field->rmf_name, offset, loc);
	offset--;

	LASSERT(0 <= offset && offset < REQ_MAX_FIELD_NR);
	LASSERT(offset < REQ_MAX_FIELD_NR);
	return offset;
}