dm: remove unused variable 'md'
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.
Reported-by Hulk Robot <[email protected]>
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/md/dm.c | 1 - 1 file changed, 1 deletion(-)
drivers/md/dm.c +0 -1
@@ -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 ;