]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: reduce one "if" comparison in ext4_dirhash()
authorCong Ding <dinggnu@gmail.com>
Sat, 2 Feb 2013 03:33:21 +0000 (22:33 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 2 Feb 2013 03:33:21 +0000 (22:33 -0500)
commit2234ebc4d4b73801a5f10d237a033f0cf9116963
tree584573b9c36dde6f07756a6d57cb8c7065c959fd
parent457f5da7c37b2245f4a56827ecac4f3b8e5c3fab
ext4: reduce one "if" comparison in ext4_dirhash()

It is unnecessary to check i<4 after the loop; just do it before the
break.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/hash.c