OSDN Git Service

media: dvb-frontends/stv0910: deduplicate writes in enable_puncture_rate()
authorDaniel Scheller <d.scheller@gmx.net>
Tue, 26 Dec 2017 23:37:56 +0000 (18:37 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 3 Jan 2018 09:45:45 +0000 (04:45 -0500)
commit4b596bd70a396dfeb55f38b6bd1c21b8e77ebe77
treeee82c28e583c50ce89f4a1d87f87836c9ea04535
parent3bdf481e39ff1d36c1f2e1b3862db2ac329b12cd
media: dvb-frontends/stv0910: deduplicate writes in enable_puncture_rate()

For all code rates, the same write is performed, only with a differing
value. Clean this up by putting that value into a variable instead and
perform the write at the end with that value.

Picked up from the dddvb upstream.

Cc: Ralph Metzler <rjkm@metzlerbros.de>
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/stv0910.c