Skip to contentSkip to conversation

fs/gfs2/dir.c:gfs2_dir_write_data(): remove dead code

PATCH New Adrian Bunk 1 participant 1 message Oct 19, 2006 GFS2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/gfs2/dir.c:gfs2_dir_write_data(): remove dead code

The Coverity checker spotted this obviously dead code.

fs/gfs2/dir.c renamed from fs/gfs2/dir.c.old +0 -2
@@ -209,14 +209,12 @@ static int gfs2_dir_write_data(struct gf
 		if (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--;