From: Damien Le Moal Date: Thu, 16 Jul 2020 04:54:41 +0000 (+0900) Subject: md: raid5-cache: Remove set but unused variable X-Git-Tag: v5.10.7~1957^2~29^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52923083b54e7c6eeec8d78dbb9d209f4b2e9b9e;p=platform%2Fkernel%2Flinux-rpi.git md: raid5-cache: Remove set but unused variable Remove the variable offset in r5c_tree_index() to avoid a "set but not used" compilation warning when compiling with W=1. Signed-off-by: Damien Le Moal Signed-off-by: Song Liu --- diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c index 0bea21d81697..34fd942dad83 100644 --- a/drivers/md/raid5-cache.c +++ b/drivers/md/raid5-cache.c @@ -195,9 +195,7 @@ struct r5l_log { static inline sector_t r5c_tree_index(struct r5conf *conf, sector_t sect) { - sector_t offset; - - offset = sector_div(sect, conf->chunk_sectors); + sector_div(sect, conf->chunk_sectors); return sect; }