Skip to content

Commit

Permalink
[GFS2] fs/gfs2/dir.c:gfs2_dir_write_data(): remove dead code
Browse files Browse the repository at this point in the history
The Coverity checker spotted this obviously dead code.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Adrian Bunk authored and Steven Whitehouse committed Oct 20, 2006
1 parent a2d7d02 commit abbdbd2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/gfs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit abbdbd2

Please sign in to comment.