Skip to content

Commit 27d4181

Browse files
ij-intelbjorn-helgaas
authored andcommitted
PCI: Use unsigned int i in pcie_read_tlp_log()
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>
1 parent dbfd51b commit 27d4181

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/pci/pcie/tlp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
int pcie_read_tlp_log(struct pci_dev *dev, int where,
2525
struct pcie_tlp_log *log)
2626
{
27-
int i, ret;
27+
unsigned int i;
28+
int ret;
2829

2930
memset(log, 0, sizeof(*log));
3031

0 commit comments

Comments
 (0)