staging: ft1000: function scram_start_dwnld extracted from scram_dnldr in ft1000_down...
authorKelley Nielsen <kelleynnn@gmail.com>
Sun, 27 Oct 2013 23:40:39 +0000 (16:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Oct 2013 22:04:24 +0000 (15:04 -0700)
commiteb3836cefcc315c53ba25cb589f7b06aa962578b
tree9986395e561280019f00d6ec1cfd35ccb0d9c455
parent93b2a6c847d50a2bdcda880a8f32c462f012dca3
staging: ft1000: function scram_start_dwnld extracted from scram_dnldr in ft1000_download.c

function scram_dnldr is over 500 lines long, with deep indents that
trigger checkpatch warnings for too many tabs. It mainly consists of a
switch statement with long, complicated cases. The first case has been
extracted to form the helper function scram_start_dwnld. Some style
issues in the extracted lines have been corrected as well.

Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
Reviewed-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-usb/ft1000_download.c