From: Mauro Carvalho Chehab Date: Wed, 29 Apr 2015 12:50:41 +0000 (-0300) Subject: [media] ov7670: check read error also for REG_AECHH on ov7670_s_exp() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~111^2~497 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d487df9ef9659b6453751674994178f7f2564dd2;p=pandora-kernel.git [media] ov7670: check read error also for REG_AECHH on ov7670_s_exp() ov7670_s_exp() checks read error for 2 registers: REG_COM1 and REG_COM8. But, although it uses the value latter, it doesn't check errors on REG_AECHH read. Yet, as it is doing a bitmask operation there, the read operation should succeed. So, fix the code to also check if this succeeded. This fixes this smatch report: drivers/media/i2c/ov7670.c:1366 ov7670_s_exp() warn: inconsistent indenting Compile-tested only. Signed-off-by: Mauro Carvalho Chehab Acked-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed