]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove unnecessary check in add_dirent_to_buf()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 30 Apr 2012 11:40:00 +0000 (07:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 30 Apr 2012 11:40:00 +0000 (07:40 -0400)
commita4cdaa5155745d524a65bd64e58995ff1ae6d817
treee4ca909438eb43ac5b493793891d626ffd0e6b06
parenta7eccd87cfa43e6b8d218e4357392e3e20e8dd0f
ext4: remove unnecessary check in add_dirent_to_buf()

None of this function callers ever pass in a NULL inode pointer, so
this check is unnecessary, and the else clause is dead code.  (This
change should make the code coverage people a little happier.  :-)

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/namei.c