[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200702103928.67693-1-weiyongjun1@huawei.com>
Date: Thu, 2 Jul 2020 18:39:28 +0800
From: Wei Yongjun <weiyongjun1@...wei.com>
To: Hulk Robot <hulkci@...wei.com>, Alasdair Kergon <agk@...hat.com>,
"Mike Snitzer" <snitzer@...hat.com>, Christoph Hellwig <hch@....de>
CC: Wei Yongjun <weiyongjun1@...wei.com>, <dm-devel@...hat.com>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH -next] dm: remove unused variable 'md'
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@...wei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@...wei.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;
Powered by blists - more mailing lists