summaryrefslogtreecommitdiff
path: root/ls-ecaps.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2020-01-21 23:07:25 +0100
committerMartin Mares <mj@ucw.cz>2020-01-21 23:07:25 +0100
commit9225e71df8b1e2f64569c6ee71f0a11ffa3bb315 (patch)
tree826b054dfb2b600ddbf34e6ab86cf271b3b7a90a /ls-ecaps.c
parent9d4ac0769ce265eb52f1e6bbe71bba829879e156 (diff)
downloadpciutils-9225e71df8b1e2f64569c6ee71f0a11ffa3bb315.tar.gz
Verbosity of Secondary PCI Express cap should not depend on device type
Diffstat (limited to 'ls-ecaps.c')
-rw-r--r--ls-ecaps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ls-ecaps.c b/ls-ecaps.c
index 4417cd9..0021734 100644
--- a/ls-ecaps.c
+++ b/ls-ecaps.c
@@ -77,12 +77,12 @@ cap_ltr(struct device *d, int where)
}
static void
-cap_sec(struct device *d, int where, int type)
+cap_sec(struct device *d, int where)
{
u32 ctrl3, lane_err_stat;
u8 lane;
printf("Secondary PCI Express\n");
- if (verbose < 2 && type == 0)
+ if (verbose < 2)
return;
if (!config_fetch(d, where + PCI_SEC_LNKCTL3, 12))
@@ -897,7 +897,7 @@ show_ext_caps(struct device *d, int type)
cap_ltr(d, where);
break;
case PCI_EXT_CAP_ID_SECPCI:
- cap_sec(d, where, type);
+ cap_sec(d, where);
break;
case PCI_EXT_CAP_ID_PMUX:
printf("Protocol Multiplexing <?>\n");