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/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]>
1 parent dbfd51b commit 27d4181

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)