Re: [PATCH 10/14] RFC: usb/host/fotg210: Add function scan_frame_queue()

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:14PM +0200, Peter Senna Tschudin wrote: > checkpatch complains about too many leading tabs because the if > statement starts after 6 tabs: > > scan_iosoc() -> for() -> while() -> switch() -> if() -> for() -> if() > > There is also a goto statement going backwards in

[PATCH 10/14] RFC: usb/host/fotg210: Add function scan_frame_queue()

2015-09-21 Thread Peter Senna Tschudin
checkpatch complains about too many leading tabs because the if statement starts after 6 tabs: scan_iosoc() -> for() -> while() -> switch() -> if() -> for() -> if() There is also a goto statement going backwards in case of failure. This patch creates a new inline function named scan_frame_queue()