NFS: Squelch compiler warning in decode_getdeviceinfo()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Dec 2010 14:58:21 +0000 (14:58 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Dec 2010 17:37:24 +0000 (12:37 -0500)
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 <chuck.lever@oracle.com>
Tested-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4xdr.c

index be9f00ab0d1804f44f8a5ee8370e7b4f63efe8da..a15fe99fea864f86dedf2513fe15bcb707c3c94d 100644 (file)
@@ -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))