summaryrefslogtreecommitdiff
path: root/tools/power/cpupower/utils/helpers/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/power/cpupower/utils/helpers/pci.c')
-rw-r--r--tools/power/cpupower/utils/helpers/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/utils/helpers/pci.c b/tools/power/cpupower/utils/helpers/pci.c
index 8dcc93813716..cd2eb6fe41c4 100644
--- a/tools/power/cpupower/utils/helpers/pci.c
+++ b/tools/power/cpupower/utils/helpers/pci.c
@@ -33,7 +33,7 @@ struct pci_dev *pci_acc_init(struct pci_access **pacc, int vendor_id,
for (i = 0; dev_ids[i] != 0; i++) {
filter_nb_link.device = dev_ids[i];
- for (device=(*pacc)->devices; device; device = device->next) {
+ for (device = (*pacc)->devices; device; device = device->next) {
if (pci_filter_match(&filter_nb_link, device))
return device;
}