From 7fe0122ca3ea3ed3b17a856e09936ff44d7e2f12 Mon Sep 17 00:00:00 2001 From: HaoJie Huang <22371339@buaa.edu.cn> Date: Sun, 8 Jun 2025 13:44:12 +0800 Subject: [PATCH] scsi: fusion: Remove unused variable 'rc' Mainline inclusion Commit bd65694223f7ad11c790ab63ad1af87a771192ee Category: bugfix Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bd65694223f7ad11c790ab63ad1af87a771192ee ------------------------------------------------------ scsi_device_reprobe() is ignored in _scsih_reprobe_lun() now. Fixing the calling code to solve the potential error is non-trivial, use WARN_ON(). Signed-off-by: HaoJie Huang <22371339@buaa.edu.cn> --- drivers/message/fusion/mptsas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index b8cf2658649e..1cbc1c1f363e 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -4209,7 +4209,7 @@ mptsas_reprobe_lun(struct scsi_device *sdev, void *data) int rc; sdev->no_uld_attach = data ? 1 : 0; - rc = scsi_device_reprobe(sdev); + WARN_ON(scsi_device_reprobe(sdev)); } static void -- Gitee