ocfs2: Don't check for NULL before brelse()
This is pointless as brelse() already does the check. Signed-off-by: Mark Fasheh
This commit is contained in:
@@ -1174,10 +1174,9 @@ struct buffer_head *ocfs2_bread(struct inode *inode,
|
||||
return bh;
|
||||
|
||||
fail:
|
||||
if (bh) {
|
||||
brelse(bh);
|
||||
bh = NULL;
|
||||
}
|
||||
brelse(bh);
|
||||
bh = NULL;
|
||||
|
||||
*err = -EIO;
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user