aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/idmap.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-02-20 13:03:05 -0800
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-02-20 16:15:44 -0500
commit90dc7d2796edf94a9eaa838321a9734c8513e717 (patch)
tree818c8899555efa3f5598f1ee9aa1fd5a5264c6c4 /fs/nfs/idmap.c
parent1227a74e2e0217a4ca155d1677bdbf5f69e32bed (diff)
downloadkernel_samsung_smdk4412-90dc7d2796edf94a9eaa838321a9734c8513e717.tar.gz
kernel_samsung_smdk4412-90dc7d2796edf94a9eaa838321a9734c8513e717.tar.bz2
kernel_samsung_smdk4412-90dc7d2796edf94a9eaa838321a9734c8513e717.zip
nfs: fix sparse warnings
fs/nfs/nfs4state.c:788:34: warning: Using plain integer as NULL pointer fs/nfs/delegation.c:52:34: warning: Using plain integer as NULL pointer fs/nfs/idmap.c:312:12: warning: Using plain integer as NULL pointer fs/nfs/callback_xdr.c:257:6: warning: Using plain integer as NULL pointer fs/nfs/callback_xdr.c:270:6: warning: Using plain integer as NULL pointer fs/nfs/callback_xdr.c:281:6: warning: Using plain integer as NULL pointer Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/idmap.c')
-rw-r--r--fs/nfs/idmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
index 8ae5dba2d4e..86147b0ab2c 100644
--- a/fs/nfs/idmap.c
+++ b/fs/nfs/idmap.c
@@ -309,7 +309,7 @@ nfs_idmap_name(struct idmap *idmap, struct idmap_hashtable *h,
mutex_lock(&idmap->idmap_im_lock);
he = idmap_lookup_id(h, id);
- if (he != 0) {
+ if (he) {
memcpy(name, he->ih_name, he->ih_namelen);
ret = he->ih_namelen;
goto out;