]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: atomisp: clean up return logic, remove redunant code
authorColin Ian King <colin.king@canonical.com>
Sat, 11 Mar 2017 19:32:05 +0000 (19:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 13:57:00 +0000 (14:57 +0100)
commitb612a9762b20be3c30a16625adb292e9f1ff25a6
tree58d7bbdc150b0727e50a67b0dbe1ca88dcf80a64
parentb8ff636cd7d72334951a7fa1dfe9f21ba4d2107b
staging: atomisp: clean up return logic, remove redunant code

There is no need to check if ret is non-zero, remove this
redundant check and just return the error status from the call
to mt9m114_write_reg_array.

Detected by CoverityScan, CID#1416577 ("Identical code for
different branches")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/i2c/mt9m114.c