From 5371aab4803635ddb5d1f53eeade17a598352593 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 15 Feb 2017 10:09:50 +0100 Subject: [PATCH] ls-caps: Minor cleanup of cap_express_dev2() --- ls-caps.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ls-caps.c b/ls-caps.c index c12a351..db45b81 100644 --- a/ls-caps.c +++ b/ls-caps.c @@ -985,9 +985,8 @@ static void cap_express_dev2(struct device *d, int where, int type) { u32 l; u16 w; - int has_mem_bar = 0; + int has_mem_bar = device_has_memory_space_bar(d); - has_mem_bar = device_has_memory_space_bar(d); l = get_conf_long(d, where + PCI_EXP_DEVCAP2); printf("\t\tDevCap2: Completion Timeout: %s, TimeoutDis%c, LTR%c, OBFF %s", cap_express_dev2_timeout_range(PCI_EXP_DEV2_TIMEOUT_RANGE(l)), -- 2.39.2