]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
PCI: Use unsigned int i in pcie_read_tlp_log()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 14 Jan 2025 17:08:37 +0000 (19:08 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 14 Jan 2025 23:47:34 +0000 (17:47 -0600)
Loop variable i counting from 0 upwards does not need to be signed so make
it unsigned int.

Link: https://lore.kernel.org/r/20250114170840.1633-6-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/pci/pcie/tlp.c

index f0cfe7e3907876dda58d0bd503b772e6d46e674c..d7ad99f466b9b9e4ae653ec91ee5c6c3eaae9e4e 100644 (file)
@@ -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));