summaryrefslogtreecommitdiff
path: root/drivers/phy
diff options
context:
space:
mode:
authorPeter Senna Tschudin <peter.senna@gmail.com>2015-10-12 21:22:40 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-17 06:46:27 (GMT)
commit50bdb12388c520e93947fca3cabf233a77fefd42 (patch)
treef753d4ebe0f99c9980472083f3d9b47e1cea1369 /drivers/phy
parent32fb1939e3921691c71f7cd274d80d487af72fae (diff)
downloadlinux-50bdb12388c520e93947fca3cabf233a77fefd42.tar.xz
usb/host/fotg210: Add function scan_frame_queue()
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() containing the last 4 nesting levels, and removes the need of backwards goto, making the code easier to read. After the patch it becomes: scan_iosoc() -> for() -> while() -> scan_frame_queue() Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/phy')
0 files changed, 0 insertions, 0 deletions