Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7a72658
)
pci: fix coverity issue CID-322372
09/39409/2
author
Dave Wallace
<dwallacelf@gmail.com>
Tue, 22 Aug 2023 16:51:09 +0000
(12:51 -0400)
committer
Damjan Marion
<dmarion@0xa5.net>
Wed, 13 Sep 2023 12:14:18 +0000
(12:14 +0000)
Type: fix
Change-Id: Iaf16bb720d76ea3ae04afb8123b7cac15771ef2b
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
src/vlib/pci/pci.c
patch
|
blob
|
history
diff --git
a/src/vlib/pci/pci.c
b/src/vlib/pci/pci.c
index
dc4f382
..
1845a62
100644
(file)
--- a/
src/vlib/pci/pci.c
+++ b/
src/vlib/pci/pci.c
@@
-302,7
+302,7
@@
_vlib_pci_link_speed (u8 *s, u8 speed, u8 width)
[1] = "2.5", [2] = "5.0", [3] = "8.0", [4] = "16.0", [5] = "32.0"
};
- if (speed > ARRAY_LEN (speeds) || speeds[speed] == 0)
+ if (speed >
=
ARRAY_LEN (speeds) || speeds[speed] == 0)
s = format (s, "unknown speed");
else
s = format (s, "%s GT/s", speeds[speed]);