Skip to contentSkip to conversation

PCI: altera: Adjust indentation in altera_pcie_valid_device

PATCH In review Nathan Chancellor 2 participants 2 messages Dec 18, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

Fixes eaa6111b70a7 ("PCI: altera: Add Altera PCIe host controller driver")
---
 drivers/pci/controller/pcie-altera.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/pcie-altera.c +1 -1
index b447c3e4abad..24cb1c331058 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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 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.

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")

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
index b447c3e4abad..24cb1c331058 100644

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)
--
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.