From: Mauro Carvalho Chehab Date: Tue, 28 Oct 2014 14:00:48 +0000 (-0200) Subject: [media] lbdt3306a: simplify the lock status check X-Git-Tag: omap-for-v4.2/o2_dc~62^2~1^2~303 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1a88c713a81705fd2a86d8d8404399f8acc76ba;p=pandora-kernel.git [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 --- Reading git-diff-tree failed