NFS: Squelch compiler warning
authorChuck Lever <chuck.lever@oracle.com>
Fri, 7 May 2010 17:33:48 +0000 (13:33 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 14 May 2010 19:09:31 +0000 (15:09 -0400)
commit0f15c53d5b1829c10dd901f37b8263aa25ecf864
tree63c9b3f8505b97f7397bccf134d0c8655b33d71e
parent9605a069f83d999e60cd57dc8010708fe08291c0
NFS: Squelch compiler warning

Seen with -Wextra:

/home/cel/linux/fs/nfs/fscache.c: In function ‘__nfs_readpages_from_fscache’:
/home/cel/linux/fs/nfs/fscache.c:479: warning: comparison between signed and unsigned integer expressions

The comparison implicitly converts "int" to "unsigned", making it
safe.  But there's no need for the implicit type conversions here, and
the dfprintk() already uses a "%u" formatter for "npages."  Better to
reduce confusion.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/fscache.c