[media] lbdt3306a: simplify the lock status check
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 14:00:48 +0000 (12:00 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 3 Mar 2015 13:34:13 +0000 (10:34 -0300)
commitb1a88c713a81705fd2a86d8d8404399f8acc76ba
tree84b260f9e194e87ebb8db5cc602e3dc3288a5703
parent097117cab5041cdd85aafc2a8af1113cbdf65e27
[media] lbdt3306a: simplify the lock status check

The logic there is too complex and it looks like an inifite
loop.

So, simplify the logic and implement it as a for loop.

This gets rid of the following checkpatch.pl warnings:

WARNING: else is not generally useful after a break or return
+ return LG3306_UNLOCK;
+ } else {

WARNING: else is not generally useful after a break or return
+ return LG3306_UNLOCK;
+ } else {

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/lgdt3306a.c