Skip to content

Commit b53ac8b

Browse files
committed
dm: remove unused variable
Since merging the commit identified in Fixes below, we trigger this compile time warning: drivers/md/dm.c: In function ‘__map_bio’: drivers/md/dm.c:1296:24: warning: unused variable ‘md’ [-Wunused-variable] 1296 | struct mapped_device *md = io->md; | ^~ Remove the 'md' variable. Fixes: 5a6c35f ("block: remove direct_make_request") Signed-off-by: Jens Axboe <[email protected]>
1 parent 6bf0eb5 commit b53ac8b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/md/dm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,6 @@ static blk_qc_t __map_bio(struct dm_target_io *tio)
12801280
sector_t sector;
12811281
struct bio *clone = &tio->clone;
12821282
struct dm_io *io = tio->io;
1283-
struct mapped_device *md = io->md;
12841283
struct dm_target *ti = tio->ti;
12851284
blk_qc_t ret = BLK_QC_T_NONE;
12861285

0 commit comments

Comments
 (0)