OSDN Git Service

staging: ft1000: flatten nesting in dsp_broadcast_msg_id()
authorKelley Nielsen <kelleynnn@gmail.com>
Wed, 6 Nov 2013 13:09:56 +0000 (05:09 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2013 15:55:00 +0000 (07:55 -0800)
commita3220b89bd396ff5b83ede05d7925564d277a9ea
tree3feb71b3ce45459def8f5eb02f0a2fff149f0c7d
parent9a1261f317110e2b139a35fe7acf7fa04ca1bf97
staging: ft1000: flatten nesting in dsp_broadcast_msg_id()

The function dsp_broadcast_msg_id() has four levels of nesting. Move the
handling for failed allocation for *dpram_blk from the else block at the
end to the block immediately following the test, reverse the sense of the
test, and exit with an error code if the allocation fails. This eliminates
descending into an if block if the allocation is successful. Move all
lines inside the removed block one tab to the left, and join lines
that will fall under the 80 char limit.

Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-usb/ft1000_hw.c