summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeng Heng <zengheng4@huawei.com>2024-10-24 16:44:17 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-09 10:32:18 +0100
commitac3c9fb621de1db40addedd3ae67add10a315134 (patch)
tree63c9fc9e7d0c5c335dce84fcc36b980f585e8048
parentc28409f851abd93b37969cac7498828ad533afd9 (diff)
downloadlinux-ac3c9fb621de1db40addedd3ae67add10a315134.tar.gz
linux-ac3c9fb621de1db40addedd3ae67add10a315134.tar.bz2
linux-ac3c9fb621de1db40addedd3ae67add10a315134.zip
scsi: fusion: Remove unused variable 'rc'
[ Upstream commit bd65694223f7ad11c790ab63ad1af87a771192ee ] The return value of scsi_device_reprobe() is currently ignored in _scsih_reprobe_lun(). Fixing the calling code to deal with the potential error is non-trivial, so for now just WARN_ON(). The handling of scsi_device_reprobe()'s return value refers to _scsih_reprobe_lun() and the following link: https://lore.kernel.org/all/094fdbf57487af4f395238c0525b2a560c8f68f0.1469766027.git.calvinowens@fb.com/ Fixes: f99be43b3024 ("[SCSI] fusion: power pc and miscellaneous bug fixs") Signed-off-by: Zeng Heng <zengheng4@huawei.com> Link: https://lore.kernel.org/r/20241024084417.154655-1-zengheng4@huawei.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/message/fusion/mptsas.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c
index 86f16f3ea478..d97057f46ca8 100644
--- a/drivers/message/fusion/mptsas.c
+++ b/drivers/message/fusion/mptsas.c
@@ -4234,10 +4234,8 @@ mptsas_find_phyinfo_by_phys_disk_num(MPT_ADAPTER *ioc, u8 phys_disk_num,
static void
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