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
parent fd8351f83d
commit a81cb88b64
12 changed files with 74 additions and 147 deletions

View File

@ -671,10 +671,8 @@ leave:
restart_func = 0;
goto restart_all;
}
if (bh) {
brelse(bh);
bh = NULL;
}
brelse(bh);
bh = NULL;
mlog_exit(status);
return status;
@ -991,8 +989,7 @@ bail_unlock_rw:
if (size_change)
ocfs2_rw_unlock(inode, 1);
bail:
if (bh)
brelse(bh);
brelse(bh);
mlog_exit(status);
return status;