diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2015-10-13 00:22:40 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-17 09:46:27 +0300 |
commit | 50bdb12388c520e93947fca3cabf233a77fefd42 (patch) | |
tree | f753d4ebe0f99c9980472083f3d9b47e1cea1369 /drivers/phy/phy-samsung-usb2.c | |
parent | 32fb1939e3921691c71f7cd274d80d487af72fae (diff) | |
download | linux-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/phy-samsung-usb2.c')
0 files changed, 0 insertions, 0 deletions