From: Chuck Lever Date: Tue, 14 Dec 2010 14:58:21 +0000 (+0000) Subject: NFS: Squelch compiler warning in decode_getdeviceinfo() X-Git-Tag: v2.6.38-rc1~407^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ead00597882c4ee3c534d6880cc3bcb4d412cc4b;p=profile%2Fivi%2Fkernel-x86-ivi.git NFS: Squelch compiler warning in decode_getdeviceinfo() Clean up. .../linux/nfs-2.6/fs/nfs/nfs4xdr.c: In function ‘decode_getdeviceinfo’: .../linux/nfs-2.6/fs/nfs/nfs4xdr.c:5008: warning: comparison between signed and unsigned integer expressions Signed-off-by: Chuck Lever Tested-by: J. Bruce Fields Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index be9f00a..a15fe99 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c @@ -5000,7 +5000,7 @@ static int decode_getdeviceinfo(struct xdr_stream *xdr, goto out_overflow; len = be32_to_cpup(p); if (len) { - int i; + uint32_t i; p = xdr_inline_decode(xdr, 4 * len); if (unlikely(!p))