PCI: altera: Adjust indentation in altera_pcie_valid_device
PATCH 1/1 PCI: altera: Adjust indentation in altera_pcie_valid_device
Clang warns:
../drivers/pci/controller/pcie-altera.c:196:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
return true;
^
../drivers/pci/controller/pcie-altera.c:193:2: note: previous statement
is here
if (bus->number == pcie->root_bus_nr && dev > 0)
^1 warning generated.
This warning occurs because there is a space after the tab on this line. Remove it so that the indentation is consistent with the Linux kernel coding style and clang no longer warns.
--- drivers/pci/controller/pcie-altera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/pcie-altera.c +1 -1
@@ -193,7 +193,7 @@ static bool altera_pcie_valid_device(struct altera_pcie *pcie,if (bus->number == pcie->root_bus_nr && dev >0 )return false; -return true; +return true; }static int tlp_read_packet (struct altera_pcie *pcie,u32 *value)
Signature · 1 line
2.24.1
Quoted 24 lines
-----Original Message-----
From: Nathan Chancellor <[email protected]>
Sent: Wednesday, December 18, 2019 9:28 AM
To: Ley Foon Tan <[email protected]>; Lorenzo Pieralisi <[email protected]>; Bjorn Helgaas <[email protected]>
Cc: Andrew Murray <[email protected]>; [email protected]; [email protected]; [email protected]; clang-built- [email protected]; Nathan Chancellor <[email protected]>
Subject: [PATCH] PCI: altera: Adjust indentation inaltera_pcie_valid_deviceClang warns:
../drivers/pci/controller/pcie-altera.c:196:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]return true; ^ ../drivers/pci/controller/pcie-altera.c:193:2: note: previous statement is here if (bus->number == pcie->root_bus_nr && dev > 0) ^1 warning generated.
Quoted 7 lines
This warning occurs because there is a space after the tab on this line. Remove it so that the indentation is consistent with the Linux kernel coding style and clang no longer warns.
Fixes eaa6111b70a7 ("PCI: altera: Add Altera PCIe host controller driver")Signed-off-by Nathan Chancellor <[email protected]>
Thanks.
Regards
Ley Foon
Quoted 32 lines
--- drivers/pci/controller/pcie-altera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/pci/controller/pcie- renamed from drivers/pci/controller/pcie-altera.c +0
-0
altera.c
indexb447c3e4abad..24cb1c331058100644drivers/pci/controller/pcie-altera.c +1
-1@@ -193,7 +193,7 @@ static bool altera_pcie_valid_device(struct altera_pcie *pcie, if (bus->number == pcie->root_bus_nr && dev > 0)return false; -return true; +return true; }static int
tlp_read_packet(struct altera_pcie *pcie, u32 *value)
--
2.24.1________________________________
Confidentiality Notice.
This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you.