xdr: Len can never be negative

The len parameter to xdr_len is unsigned, so can never be negative.
Don't bother testing to see if it is negative, so that clang likes us
again.

Change-Id: Iad5f8b1b2d20ec55846bc1ef7b7499a30956e17f
Reviewed-on: http://gerrit.openafs.org/7089
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Simon Wilkinson 2012-03-30 19:40:30 +01:00 committed by Derrick Brashear
parent 5e107724f3
commit f1842bcb87

View File

@ -171,7 +171,7 @@ xdrmem_inline(XDR *xdrs, u_int len)
{
afs_int32 *buf = 0;
if (len >= 0 && xdrs->x_handy >= len) {
if (xdrs->x_handy >= len) {
xdrs->x_handy -= len;
buf = (afs_int32 *) xdrs->x_private;
xdrs->x_private += len;