commit | b1a88c713a81705fd2a86d8d8404399f8acc76ba | [log] [tgz] |
---|---|---|
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | Tue Oct 28 12:00:48 2014 -0200 |
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | Tue Mar 03 10:34:13 2015 -0300 |
tree | 84b260f9e194e87ebb8db5cc602e3dc3288a5703 | |
parent | 097117cab5041cdd85aafc2a8af1113cbdf65e27 [diff] |
[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>