media: rcar-vin: fix return, use ret instead of zero
authorColin Ian King <colin.king@canonical.com>
Fri, 4 Dec 2020 17:38:33 +0000 (18:38 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 7 Jan 2021 14:47:51 +0000 (15:47 +0100)
commite99a8f0f6344fee25cd30907c30ac0ca2f02804d
tree7bc1aa46b37f2190144b1b98b41a5d2bdbd8fe84
parent1bc0b1baf26efa23c0fd6fdcc24297e7d94f37ac
media: rcar-vin: fix return, use ret instead of zero

Currently the return error code is in ret is being assigned but not
used. It and should be returned by the return statement and currently
just 0 is being returned. Fix this.

Addresses-Coverity: ("Unused value")

Fixes: b9ad52aafe38 ("media: rcar-vin: Rework parallel firmware parsing")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-core.c