[GFS2] fs/gfs2/dir.c:gfs2_dir_write_data(): remove dead code
authorAdrian Bunk <bunk@stusta.de>
Thu, 19 Oct 2006 13:12:24 +0000 (15:12 +0200)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 20 Oct 2006 13:14:42 +0000 (09:14 -0400)
The Coverity checker spotted this obviously dead code.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/dir.c

index d43caf04bb68c4d6fa789666e60402fa4ba4dd69..ce52bd954df6c44c3b246782283e05c2b8f02788 100644 (file)
@@ -212,8 +212,6 @@ static int gfs2_dir_write_data(struct gfs2_inode *ip, const char *buf,
                gfs2_trans_add_bh(ip->i_gl, bh, 1);
                memcpy(bh->b_data + o, buf, amount);
                brelse(bh);
-               if (error)
-                       goto fail;
 
                buf += amount;
                copied += amount;