]> git.baikalelectronics.ru Git - kernel.git/commit
[media] soc-camera: Fix a return value in case of error
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 18 Nov 2016 17:49:15 +0000 (15:49 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 30 Jan 2017 16:46:44 +0000 (14:46 -0200)
commitf1a52f5c1d0d08b8cf90aa6bfb1abb3b2428bfdb
tree2e9d11661e903f07fa811c7434fe7253eedbf112
parent9684e383c116fb6c658d38945bd2b4e10b58a41a
[media] soc-camera: Fix a return value in case of error

If 'ov9640_reg_read()' does not return 0, then 'val' is left unmodified.
As it is not initialized either, the return value can be anything.

It is likely that returning the error code was expected here.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/soc_camera/ov9640.c