f2fs: remove several redundant assignments
authorColin Ian King <colin.king@canonical.com>
Thu, 19 Oct 2017 10:58:21 +0000 (12:58 +0200)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 03:28:20 +0000 (19:28 -0800)
commitf793a2c291f93a14872cd94562201c82a4500d97
treea0315c34c8842dd383af65cad1dbd4c9286bc6a9
parentfb000836b12257374dfdcfccc5490f06ccf2319e
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