projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e3b8a8
)
md: raid5-cache: Remove set but unused variable
author
Damien Le Moal
<damien.lemoal@wdc.com>
Thu, 16 Jul 2020 04:54:41 +0000
(13:54 +0900)
committer
Song Liu
<songliubraving@fb.com>
Thu, 16 Jul 2020 05:46:07 +0000
(22:46 -0700)
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 <damien.lemoal@wdc.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/raid5-cache.c
patch
|
blob
|
history
diff --git
a/drivers/md/raid5-cache.c
b/drivers/md/raid5-cache.c
index 0bea21d81697e210a48a8e1dcab1e26349c8b6cf..34fd942dad835cb2a0dac2bf67d775dcd2d77978 100644
(file)
--- 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;
}