Skip to content

Commit bd65694

Browse files
henryZemartinkpetersen
authored andcommitted
scsi: fusion: Remove unused variable 'rc'
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: f99be43 ("[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>
1 parent 178b8f3 commit bd65694

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/message/fusion/mptsas.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4231,10 +4231,8 @@ mptsas_find_phyinfo_by_phys_disk_num(MPT_ADAPTER *ioc, u8 phys_disk_num,
42314231
static void
42324232
mptsas_reprobe_lun(struct scsi_device *sdev, void *data)
42334233
{
4234-
int rc;
4235-
42364234
sdev->no_uld_attach = data ? 1 : 0;
4237-
rc = scsi_device_reprobe(sdev);
4235+
WARN_ON(scsi_device_reprobe(sdev));
42384236
}
42394237

42404238
static void

0 commit comments

Comments
 (0)