Home
last modified time | relevance | path

Searched hist:dfe59c78 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/staging/media/atomisp/i2c/
H A Datomisp-gc0310.cdfe59c78 Tue Oct 06 15:29:03 CDT 2020 Leonid Kushnir <leonf008@gmail.com> media: staging: atomisp: Corrected error handling in function

This patch fixes check of a result of 'power_up()' function call in
function 'gc0310_s_power()' to do "error handling" instead of "success
handling" as Dan Carpenter noted in his comment on the previous patch.
Lines 'return gc0310_init(sd)' and 'return ret' are swapped, and direct
value of 'ret' is checked in IF statement now.

Link: https://lore.kernel.org/linux-media/20201006202903.GA8346@linux
Signed-off-by: Leonid Kushnir <leonf008@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>