linux/drivers/staging/ft1000
Kelley Nielsen 8a58cad260 staging: ft1000: extract helper handle_misc_portid()
The function ft1000_poll, in ft1000_hw.c, is complex, with deep levels
of nesting, unnecessary variables, and style issues. Extract the default
case of the switch statement to its own function, handle_misc_portid.
Make the variable struct dpram_blk *pdpram_blk local to the new function
and remove it from the old. The variable struct pseudo_hdr *ppseudo_hdr is
used only once, to access a member of another struct, so eliminate it
and access the member directly. Return -1 in all the places where the
code fails, and 0 on successful completion. Fix coding style errors.

Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-11-10 07:55:00 -08:00
..
ft1000-pcmcia Staging: ft1000: Fix assignment of bool to 0/1 in ft1000_dnld.c 2013-10-28 15:00:35 -07:00
ft1000-usb staging: ft1000: extract helper handle_misc_portid() 2013-11-10 07:55:00 -08:00
ft1000.h staging: ft1000: unify struct ft1000_info between USB and PCMCIA drivers 2013-01-07 12:33:45 -08:00
Kconfig
Makefile
TODO