Commit 60778e5b authored by Xiang Chen's avatar Xiang Chen Committed by JiangShui
Browse files

scsi: hisi_sas: Remove unused variable and check in hisi_sas_send_ata_reset_each_phy()

mainline inclusion
from mainline-v5.17-rc1
commit 5d9224fb
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8IL6H
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5d9224fb076e9a2023e0b06d6a164d644612c0c0

----------------------------------------------------------------------

In commit 29e2bac8 ("scsi: hisi_sas: Fix some issues related to
asd_sas_port->phy_list"), we use asd_sas_port->phy_mask instead of
accessing asd_sas_port->phy_list, and it is enough to use
asd_sas_port->phy_mask to check the state of phy, so remove the unused
check and variable.

Link: https://lore.kernel.org/r/1641300126-53574-1-git-send-email-chenxiang66@hisilicon.com


Fixes: 29e2bac8 ("scsi: hisi_sas: Fix some issues related to asd_sas_port->phy_list")
Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
Reported-by: default avatarColin King <colin.i.king@gmail.com>
Acked-by: default avatarJohn Garry <john.garry@huawei.com>
Signed-off-by: default avatarXiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarxiabing <xiabing12@h-partners.com>
parent bc8070de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment