Skip to contentSkip to conversation

dm: remove unused variable 'md'

PATCH New Wei Yongjun 1 participant 1 message Jul 2, 2020 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm: remove unused variable 'md'

After commit 5a6c35f9af41 ("block: remove direct_make_request"), 'md' is never used and gcc report build warning:

drivers/md/dm.c:1296:24: warning: unused variable 'md' [-Wunused-variable]
1296 | struct mapped_device *md = io->md;
| ^~

Removing it to avoid build warning.

---
 drivers/md/dm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/md/dm.c +0 -1
index a8d83d76fa9f..a02842afe358 100644
@@ -1293,7 +1293,6 @@ static blk_qc_t __map_bio(struct dm_target_io *tio)
 	sector_t sector;
 	struct bio *clone = &tio->clone;
 	struct dm_io *io = tio->io;
-	struct mapped_device *md = io->md;
 	struct dm_target *ti = tio->ti;
 	blk_qc_t ret = BLK_QC_T_NONE;