media: dib0090: fix duplicated code for different branches
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 18 Aug 2017 01:23:44 +0000 (21:23 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 27 Aug 2017 11:51:30 +0000 (07:51 -0400)
commit87c014867181c3ec6e20bf3e71db37939d1782c7
tree935d1c894a09eca67cd60090d719632e0c4bea9c
parentd4e192cc44914787cfe1231e2f1f9d0e8855f77b
media: dib0090: fix duplicated code for different branches

Refactor code in order to avoid identical code for different branches.

This issue was detected with the help of Coccinelle.

Addresses-Coverity-ID: 1226795

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/dib0090.c