* [PATCH -next] dm: remove unused variable 'md'
@ 2020-07-02 10:39 Wei Yongjun
0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2020-07-02 10:39 UTC (permalink / raw)
To: Hulk Robot, Alasdair Kergon, Mike Snitzer, Christoph Hellwig
Cc: Wei Yongjun, dm-devel, linux-kernel
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 <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/md/dm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index a8d83d76fa9f..a02842afe358 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-02 10:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-02 10:39 [PATCH -next] dm: remove unused variable 'md' Wei Yongjun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).