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: b9ad52aafe
("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>
This commit is contained in:
parent
1bc0b1baf2
commit
e99a8f0f63
|
@ -654,7 +654,7 @@ static int rvin_parallel_parse_of(struct rvin_dev *vin)
|
|||
out:
|
||||
fwnode_handle_put(fwnode);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int rvin_parallel_init(struct rvin_dev *vin)
|
||||
|
|
Loading…
Reference in New Issue