]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
dm: remove unused variable
authorJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 21:45:19 +0000 (15:45 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 21:45:19 +0000 (15:45 -0600)
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>
drivers/md/dm.c

index 2cb33896198c4cb5ca9537620d9d36c8966a8b5c..2d368cafb23e77f0f2259722e70bb57ccd964fe3 100644 (file)
@@ -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;