summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorYue Haibing <yuehaibing@huawei.com>2018-11-08 13:11:06 +0100
committerShaohua Li <shli@fb.com>2018-12-20 17:53:23 +0100
commitf91389c8d2867d10a206273b8eb3b7955b65591e (patch)
treeae32340820336d6f7793d97dd4ceff7ed72ceb46 /drivers/md/md.c
parentMerge tag 'm68k-for-v4.20-tag2' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadlinux-f91389c8d2867d10a206273b8eb3b7955b65591e.tar.xz
linux-f91389c8d2867d10a206273b8eb3b7955b65591e.zip
md: remove set but not used variable 'bi_rdev'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/md/md.c: In function 'md_integrity_add_rdev': drivers/md/md.c:2149:24: warning: variable 'bi_rdev' set but not used [-Wunused-but-set-variable] It not used any more after commit 1501efadc524 ("md/raid: only permit hot-add of compatible integrity profiles") Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index fc488cb30a94..69778419aa20 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -2148,14 +2148,12 @@ EXPORT_SYMBOL(md_integrity_register);
*/
int md_integrity_add_rdev(struct md_rdev *rdev, struct mddev *mddev)
{
- struct blk_integrity *bi_rdev;
struct blk_integrity *bi_mddev;
char name[BDEVNAME_SIZE];
if (!mddev->gendisk)
return 0;
- bi_rdev = bdev_get_integrity(rdev->bdev);
bi_mddev = blk_get_integrity(mddev->gendisk);
if (!bi_mddev) /* nothing to do */