f2fs: remove several redundant assignments
commitdca6951f5adc5262ae2689cf2656628b309eabd7
authorColin Ian King <colin.king@canonical.com>
Thu, 19 Oct 2017 10:58:21 +0000 (19 12:58 +0200)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 26 Oct 2017 08:44:26 +0000 (26 10:44 +0200)
tree1980a1528c463ebbcfa705fc3d1c34aca7845cc9
parent6bccfa19bb3ba31ebe9abc3ec95b27cc4667194e
f2fs: remove several redundant assignments

There are several assignments to variables that are redundant
as the values are never read when the variables are updated later
and so the redundant statements can be safely removed.

Cleans up clang warnings:
fs/f2fs/segment.c:923:19: warning: Value stored to 'p' during its initialization is never read
fs/f2fs/segment.c:2060:2: warning: Value stored to 'hint' is never read
fs/f2fs/segment.c:2353:2: warning: Value stored to 'start_block' is never read
fs/f2fs/segment.c:2354:2: warning: Value stored to 'end_block' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c