]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: host: xhci: convert to list_for_each_entry_safe()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 23 Jan 2017 12:20:17 +0000 (14:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 09:59:07 +0000 (10:59 +0100)
commita54cfae3c7727c2c172fdcd5886b4235b833da6c
tree29ea7978c4daa6506ad8d415ffe533dbcabdda58
parent5278204c98188ac9fd2e75b936eec1015d062a75
usb: host: xhci: convert to list_for_each_entry_safe()

instead of using while(!list_empty()) followed by list_first_entry(), we
can actually use list_for_each_entry_safe().

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c