ext4: remove useless test and assignment in strtohash functions
authorDamien Guibouret <damien.guibouret@partition-saving.com>
Thu, 24 Aug 2017 19:11:34 +0000 (15:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 24 Aug 2017 19:11:34 +0000 (15:11 -0400)
commit918dc9d0ab8565886de3ea8bac329e2b102e7f3a
tree54f1abe27e5909e25371332428baa301bdbad365
parenta6d05676047ec9ef7b98087f8b19a5283dd5a8ce
ext4: remove useless test and assignment in strtohash functions

On transformation of str to hash, computed value is initialised before
first byte modulo 4. But it is already initialised before entering loop
and after processing last byte modulo 4. So the corresponding test and
initialisation could be removed.

Signed-off-by: Damien Guibouret <damien.guibouret@partition-saving.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/hash.c