]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: fusion: Remove unused variable 'rc'
authorZeng Heng <zengheng4@huawei.com>
Thu, 24 Oct 2024 08:44:17 +0000 (16:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:38 +0000 (13:53 +0100)
commita3fc624548c1f49cc255aa3555d88d0e7cc77076
treee52284d53d7c8b21c1d4861761228b5f238b3240
parent1ffdde30a90bf8efe8f270407f486706962b3292
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>
drivers/message/fusion/mptsas.c