Skip to contentSkip to conversation

staging: unisys: fix some debugfs output

PATCH New Dan Carpenter 1 participant 1 message Mar 12, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: unisys: fix some debugfs output

When we removed the ERRDEV() macro we made a small mistake so now it doesn't print the "Virtual PCI devices" section header.

Fixes 0aca78449b58 ('staging: unisys: remove ERRDEV macros')
drivers/staging/unisys/virtpci/virtpci.c +2 -2
index 43b5736..cfefdab 100644
@@ -1289,8 +1289,8 @@ static ssize_t info_debugfs_read(struct file *file, char __user *buf,
 	printparam.str_pos = &str_pos;
 	printparam.buf = vbuf;
 	printparam.len = &len;
-	if (bus_for_each_dev(&virtpci_bus_type, NULL,
-			     (void *)&printparam, print_vbus))
+	bus_for_each_dev(&virtpci_bus_type, NULL, (void *)&printparam,
+			 print_vbus);
 
 	str_pos += scnprintf(vbuf + str_pos, len - str_pos,
 			"\n Virtual PCI devices\n");