[media] drx-j: Split firmware size check from the main routine
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 18 Jan 2014 22:11:11 +0000 (19:11 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 4 Mar 2014 17:32:54 +0000 (14:32 -0300)
commit2cd63e487c80a85a832e4c4786c4b0dd64bef420
treecd0a5825973a45072fa1f65a1185fb9fb8da5860
parentb48293db4a348e9759c1f8a41a84f2e9f559decf
[media] drx-j: Split firmware size check from the main routine

The firmware upload routine is already complex enough. Split the
first loop that verifies the firmware size into a separate routine,
making the code more readable.

Acked-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/drx39xyj/drx_driver.c