Skip to content

Commit

Permalink
dm: remove unused variable
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
axboe committed Jul 1, 2020
1 parent 6bf0eb5 commit b53ac8b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,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;

Expand Down

0 comments on commit b53ac8b

Please sign in to comment.