aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorPeter Senna Tschudin <peter.senna@gmail.com>2015-10-12 23:22:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-16 23:46:27 -0700
commit50bdb12388c520e93947fca3cabf233a77fefd42 (patch)
treef753d4ebe0f99c9980472083f3d9b47e1cea1369 /drivers/phy
parentusb/host/fotg210: Add function: output_buf_tds_dir() (diff)
downloadlinux-dev-50bdb12388c520e93947fca3cabf233a77fefd42.tar.xz
linux-dev-50bdb12388c520e93947fca3cabf233a77fefd42.zip
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