ext4: remove an unneeded NULL check in __ext4_check_dir_entry()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 20 Feb 2012 22:53:05 +0000 (17:53 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 20 Feb 2012 22:53:05 +0000 (17:53 -0500)
commit4fda400360e6c15b9dea4351f2ad85845cdfda7e
treee8759a08bd2bd0947477a22b6550477ca9c03932
parentf1b3a2a75356ce9fdcbedd79d2bb0d1ca8ed9cee
ext4: remove an unneeded NULL check in __ext4_check_dir_entry()

We dereference "bh" unconditionally a couple lines down to find
"by->b_size".  This function is never called with a NULL "bh" so I have
removed the check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/dir.c