Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abbdbd20 authored by Adrian Bunk's avatar Adrian Bunk Committed by Steven Whitehouse
Browse files

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



The Coverity checker spotted this obviously dead code.

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent a2d7d021
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -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);
		gfs2_trans_add_bh(ip->i_gl, bh, 1);
		memcpy(bh->b_data + o, buf, amount);
		memcpy(bh->b_data + o, buf, amount);
		brelse(bh);
		brelse(bh);
		if (error)
			goto fail;


		buf += amount;
		buf += amount;
		copied += amount;
		copied += amount;