]> 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)
commit9866c9201da67d7249a5b4f4aaf556bb7c3d06f5
treee4ca909438eb43ac5b493793891d626ffd0e6b06
parentd7c7209e63cc993de712dbe99e0e866ca3278577
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