fs/gfs2/dir.c:gfs2_dir_write_data(): remove dead code
PATCH 1/1 fs/gfs2/dir.c:gfs2_dir_write_data(): remove dead code
The Coverity checker spotted this obviously dead code.
Signed-off-by Adrian Bunk <[email protected]>
fs/gfs2/dir.c renamed from fs/gfs2/dir.c.old +0 -2
@@ -209,14 +209,12 @@ static int gfs2_dir_write_data(struct gfif (error) goto fail;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; lblock++; dblock++; extlen--;