GFS2: Replace PTR_RET with PTR_ERR_OR_ZERO
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 17 Jul 2013 07:41:52 +0000 (08:41 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Jul 2013 01:41:46 +0000 (11:11 +0930)
PTR_RET should be PTR_ERR

Reported-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
fs/gfs2/inode.c

index bbb2715..a01b8fd 100644 (file)
@@ -594,7 +594,7 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry,
                }
                gfs2_glock_dq_uninit(ghs);
                if (IS_ERR(d))
-                       return PTR_RET(d);
+                       return PTR_ERR(d);
                return error;
        } else if (error != -ENOENT) {
                goto fail_gunlock;