[media] dvb_net: prepare to split a very complex function
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 19 Nov 2016 14:56:58 +0000 (12:56 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 25 Nov 2016 08:44:36 +0000 (06:44 -0200)
commitefb9ab67255fc2333293827f8c45d2f51647faf9
treef2637940e9d33a8be20e1285e6594ae968c956c9
parent4cc5bed1caeb6d40f2f41c4c5eb83368691fbffb
[media] dvb_net: prepare to split a very complex function

The dvb_net code has a really complex function, meant to handle
DVB network packages: it is long, has several loops and ifs
inside, and even cause warnings with gcc5.

Prepare it to be split into smaller functions by storing all
arguments and internal vars inside a struct.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-core/dvb_net.c