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:
Mark Fasheh
2008-10-07 14:25:16 -07:00
rodzic fd8351f83d
commit a81cb88b64
12 zmienionych plików z 74 dodań i 147 usunięć

Wyświetl plik

@@ -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;
}