diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-07-01 15:45:19 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-01 15:45:19 -0600 |
commit | b53ac8b89157b5ff5d46c07eaa8b12e9d4e63b34 (patch) | |
tree | 4f2bf00f9064af13b42773a0ae6544f595d628a9 | |
parent | 6bf0eb5504529cdf50a24135e4c4442a093c06d6 (diff) | |
download | linux-b53ac8b89157b5ff5d46c07eaa8b12e9d4e63b34.tar.bz2 |
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: 5a6c35f9af41 ("block: remove direct_make_request")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/md/dm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 2cb33896198c..2d368cafb23e 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -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; |