diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2015-10-12 23:22:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-16 23:46:27 -0700 |
commit | 50bdb12388c520e93947fca3cabf233a77fefd42 (patch) | |
tree | f753d4ebe0f99c9980472083f3d9b47e1cea1369 /include/net/request_sock.h | |
parent | 32fb1939e3921691c71f7cd274d80d487af72fae (diff) | |
download | op-kernel-dev-50bdb12388c520e93947fca3cabf233a77fefd42.zip op-kernel-dev-50bdb12388c520e93947fca3cabf233a77fefd42.tar.gz |
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 'include/net/request_sock.h')
0 files changed, 0 insertions, 0 deletions