Thread (23 messages) 23 messages, 2 authors, 2024-12-13

Re: [PATCH v6 4/8] PCI: Use unsigned int i in pcie_read_tlp_log()

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Date: 2024-12-11 16:59:00
Also in: linux-pci, lkml

On Fri, 13 Sep 2024 17:36:28 +0300
Ilpo Järvinen [off-list ref] wrote:
Loop variable i counting from 0 upwards does not need to be signed so
make it unsigned int.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
To me this is unnecessary noise, but it's harmless so no problem
if you really like it.

Jonathan
quoted hunk ↗ jump to hunk
---
 drivers/pci/pcie/tlp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/pci/pcie/tlp.c b/drivers/pci/pcie/tlp.c
index 2bf15749cd31..65ac7b5d8a87 100644
--- a/drivers/pci/pcie/tlp.c
+++ b/drivers/pci/pcie/tlp.c
@@ -24,7 +24,8 @@
 int pcie_read_tlp_log(struct pci_dev *dev, int where,
 		      struct pcie_tlp_log *log)
 {
-	int i, ret;
+	unsigned int i;
+	int ret;
 
 	memset(log, 0, sizeof(*log));
 
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help