[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211104061916.2218-1-luo.penghao@zte.com.cn>
Date: Thu, 4 Nov 2021 06:19:16 +0000
From: cgel.zte@...il.com
To: Song Liu <song@...nel.org>
Cc: linux-raid@...r.kernel.org, linux-kernel@...r.kernel.org,
luo penghao <luo.penghao@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] md: Remove redundant assignments
From: luo penghao <luo.penghao@....com.cn>
The assignment of err will be overwritten next, so this statement
should be deleted.
The clang_analyzer complains as follows:
drivers/md/md-autodetect.c:178:2: warning:
Value stored to 'err' is never read
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: luo penghao <luo.penghao@....com.cn>
---
drivers/md/md-autodetect.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/md/md-autodetect.c b/drivers/md/md-autodetect.c
index 2cf9737..ab425d5 100644
--- a/drivers/md/md-autodetect.c
+++ b/drivers/md/md-autodetect.c
@@ -175,7 +175,6 @@ static void __init md_setup_drive(struct md_setup_args *args)
return;
}
- err = -EIO;
if (WARN(bdev->bd_disk->fops != &md_fops,
"Opening block device %x resulted in non-md device\n",
mdev))
--
2.15.2
Powered by blists - more mailing lists