diff options
author | Dan Carpenter <error27@gmail.com> | 2010-04-22 15:35:56 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-04-22 15:35:56 -0400 |
commit | cdd29ecfcb9554132cd94b82ae8b69ba37adb3b5 (patch) | |
tree | c99d810b3346989b8dbd88c469aa5bd0c9871f5c /fs/nfs/super.c | |
parent | 356e76b855bdbfd8d1c5e75bcf0c6bf0dfe83496 (diff) | |
download | linux-cdd29ecfcb9554132cd94b82ae8b69ba37adb3b5.tar.gz linux-cdd29ecfcb9554132cd94b82ae8b69ba37adb3b5.tar.bz2 linux-cdd29ecfcb9554132cd94b82ae8b69ba37adb3b5.zip |
nfs: testing for null instead of ERR_PTR()
nfs_path() returns an ERR_PTR(), it doesn't return null.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r-- | fs/nfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index e01637240eeb..f9327bbaf466 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -2657,7 +2657,7 @@ static void nfs_fix_devname(const struct path *path, struct vfsmount *mnt) devname = nfs_path(path->mnt->mnt_devname, path->mnt->mnt_root, path->dentry, page, PAGE_SIZE); - if (devname == NULL) + if (IS_ERR(devname)) goto out_freepage; tmp = kstrdup(devname, GFP_KERNEL); if (tmp == NULL) |