Commit 1301b861 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

scsi: arcmsr: clean up clang warning on extraneous parentheses

[ Upstream commit ca2ade24 ]

There are extraneous parantheses that are causing clang to produce a
warning so remove these.

Clean up 3 clang warnings:
equality comparison with extraneous parentheses [-Wparentheses-equality]
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarChing Huang <ching2048@areca.com.tw>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b0c75ea8
...@@ -4135,9 +4135,9 @@ static void arcmsr_hardware_reset(struct AdapterControlBlock *acb) ...@@ -4135,9 +4135,9 @@ static void arcmsr_hardware_reset(struct AdapterControlBlock *acb)
pci_read_config_byte(acb->pdev, i, &value[i]); pci_read_config_byte(acb->pdev, i, &value[i]);
} }
/* hardware reset signal */ /* hardware reset signal */
if ((acb->dev_id == 0x1680)) { if (acb->dev_id == 0x1680) {
writel(ARCMSR_ARC1680_BUS_RESET, &pmuA->reserved1[0]); writel(ARCMSR_ARC1680_BUS_RESET, &pmuA->reserved1[0]);
} else if ((acb->dev_id == 0x1880)) { } else if (acb->dev_id == 0x1880) {
do { do {
count++; count++;
writel(0xF, &pmuC->write_sequence); writel(0xF, &pmuC->write_sequence);
...@@ -4161,7 +4161,7 @@ static void arcmsr_hardware_reset(struct AdapterControlBlock *acb) ...@@ -4161,7 +4161,7 @@ static void arcmsr_hardware_reset(struct AdapterControlBlock *acb)
} while (((readl(&pmuE->host_diagnostic_3xxx) & } while (((readl(&pmuE->host_diagnostic_3xxx) &
ARCMSR_ARC1884_DiagWrite_ENABLE) == 0) && (count < 5)); ARCMSR_ARC1884_DiagWrite_ENABLE) == 0) && (count < 5));
writel(ARCMSR_ARC188X_RESET_ADAPTER, &pmuE->host_diagnostic_3xxx); writel(ARCMSR_ARC188X_RESET_ADAPTER, &pmuE->host_diagnostic_3xxx);
} else if ((acb->dev_id == 0x1214)) { } else if (acb->dev_id == 0x1214) {
writel(0x20, pmuD->reset_request); writel(0x20, pmuD->reset_request);
} else { } else {
pci_write_config_byte(acb->pdev, 0x84, 0x20); pci_write_config_byte(acb->pdev, 0x84, 0x20);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment