Commit 96d48f0a authored by Domen Puncer's avatar Domen Puncer Committed by Greg Kroah-Hartman

[PATCH] USB: use list_for_each() in core/devices.c

Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent f8aa74cd
......@@ -584,7 +584,7 @@ static ssize_t usb_device_read(struct file *file, char __user *buf, size_t nbyte
/* enumerate busses */
down (&usb_bus_list_lock);
for (buslist = usb_bus_list.next; buslist != &usb_bus_list; buslist = buslist->next) {
list_for_each(buslist, &usb_bus_list) {
/* print devices for this bus */
bus = list_entry(buslist, struct usb_bus, bus_list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment