]> asedeno.scripts.mit.edu Git - linux.git/commit
md: raid10: remove a couple of redundant variables and initializations
authorColin Ian King <colin.king@canonical.com>
Wed, 11 Oct 2017 10:46:54 +0000 (11:46 +0100)
committerShaohua Li <shli@fb.com>
Tue, 17 Oct 2017 02:06:37 +0000 (19:06 -0700)
commita0e764c54382be8da96f83bcecc9cf26de3846dc
treee3bee83b7af781e5771e60e744e8d9f198141aff
parent935fe0983e09f4f7331ebf5ea4ae2124f6e9f9e8
md: raid10: remove a couple of redundant variables and initializations

Variables dev and bio_last_sector are assigned values that are never
read and hence these are redundant variables and can be removed.
Also remove the duplicated initialization of sectors, the latter
assignment is identical to the first and can be removed.

Cleans up 3 clang build warnings:
Value stored to 'dev' is never read
Value stored to 'bio_last_sector' is never read
Value stored to 'sectors' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid10.c