Whamcloud - gitweb
libext2fs: simplify extent_fallocate()
authorTheodore Ts'o <tytso@mit.edu>
Sat, 23 Jun 2018 03:05:49 +0000 (23:05 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 23 Jun 2018 03:05:49 +0000 (23:05 -0400)
commitce4615dd5709638a1f26e6cd59ebf880d5b8864d
treef4923ccf72d359c7c5edb0e81ee500e20676f75d
parent7faffcf0e007e166437194c4fc08c7c6aea53587
libext2fs: simplify extent_fallocate()

The goal_distance variable is used in only one place in the
extent_fallocate() function, so set it right before it is used, and
eliminate one assignment of goal_distance which is never used before
it gets overwritten.

Fixes-Coverity-Bug: 1307694
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/fallocate.c