V4L/DVB: cx22702: Avoid duplicating code in branches
authorJean Delvare <khali@linux-fr.org>
Fri, 10 Sep 2010 13:33:42 +0000 (10:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:06:10 +0000 (01:06 -0200)
commit27f84acf0be090a4948596696e534b65f0bff980
tree1b3e2785bc83f84cb3326ad4622ba91763c93626
parentd6c1ef6faa45b6a07a439719084756c3d136fa90
V4L/DVB: cx22702: Avoid duplicating code in branches

Calling the same functions in if/else or switch/case branches is
inefficient. Refactor the code for a smaller binary and increased
readability.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/cx22702.c