projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbfd51b
)
PCI: Use unsigned int i in pcie_read_tlp_log()
author
Ilpo Järvinen
<ilpo.jarvinen@linux.intel.com>
Tue, 14 Jan 2025 17:08:37 +0000
(19:08 +0200)
committer
Bjorn 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/pcie/tlp.c
b/drivers/pci/pcie/tlp.c
index f0cfe7e3907876dda58d0bd503b772e6d46e674c..d7ad99f466b9b9e4ae653ec91ee5c6c3eaae9e4e 100644
(file)
--- 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));