Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: hisi_sas: Stop converting a bool into a bool

The !! operator on a bool is pointless, so remove an example in
hisi_sas_rescan_topology().

Link: https://lore.kernel.org/r/1573551059-107873-5-git-send-email-john.garry@huawei.com
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

John Garry and committed by
Martin K. Petersen
964231aa 7c0ecd40

+1 -1
+1 -1
drivers/scsi/hisi_sas/hisi_sas_main.c
··· 1413 1413 struct hisi_sas_phy *phy = &hisi_hba->phy[phy_no]; 1414 1414 struct asd_sas_phy *sas_phy = &phy->sas_phy; 1415 1415 struct asd_sas_port *sas_port = sas_phy->port; 1416 - bool do_port_check = !!(_sas_port != sas_port); 1416 + bool do_port_check = _sas_port != sas_port; 1417 1417 1418 1418 if (!sas_phy->phy->enabled) 1419 1419 continue;