OSDN Git Service

USB: host: ohci-at91: merge loops in ohci_hcd_at91_drv_probe
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 10 Aug 2015 14:23:12 +0000 (16:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Aug 2015 23:57:43 +0000 (16:57 -0700)
commite4df92279fd9e01532f65e5ba397877799ed6252
treeb4272d512aafde8160cee6284b28ea8cf7c90f36
parentbd73bfcd44c0bdcf6efa238e5b21bdbf0778d6ce
USB: host: ohci-at91: merge loops in ohci_hcd_at91_drv_probe

ohci_hcd_at91_drv_probe() has four at91_for_each_port. They can be merged
into two loops without changing the driver behaviour.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-at91.c