]> git.karo-electronics.de Git - linux-beck.git/commitdiff
GFS2: Eliminate a nonsense goto
authorBob Peterson <rpeterso@redhat.com>
Thu, 22 Jan 2015 16:11:55 +0000 (11:11 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 26 Jan 2015 20:58:54 +0000 (20:58 +0000)
This patch just removes a goto that did nothing.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/inode.c

index 9054002ebe70dceb3b1483be3fbd54ea15f2e06a..73c72253faac07f2918c08e5e20438d148160f7e 100644 (file)
@@ -543,10 +543,7 @@ static int link_dinode(struct gfs2_inode *dip, const struct qstr *name,
        }
 
        error = gfs2_dir_add(&dip->i_inode, name, ip, da);
-       if (error)
-               goto fail_end_trans;
 
-fail_end_trans:
        gfs2_trans_end(sdp);
 fail_ipreserv:
        gfs2_inplace_release(dip);