mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 08:17:46 +00:00
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 <damien.lemoal@wdc.com> Signed-off-by: Song Liu <songliubraving@fb.com>
This commit is contained in:
parent
5e3b8a8d59
commit
52923083b5
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue