diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2016-08-09 12:36:41 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-09-09 11:29:31 -0300 |
commit | 6eaafbdb668b09b1a06841ccddc405b31c216233 (patch) | |
tree | 158c16c4be2de09c6ca69a4b4402f4aa413ae8aa /drivers/media/platform/rcar-fcp.c | |
parent | c49148e87a427e2cfb1fda760534021cfa251f45 (diff) | |
download | linux-6eaafbdb668b09b1a06841ccddc405b31c216233.tar.bz2 |
[media] v4l: rcar-fcp: Keep the coding style consistent
The Renesas multimedia drivers use ret to store return values, fix the
only exception in the rcar-fcp driver to keep the coding style
consistent.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/rcar-fcp.c')
-rw-r--r-- | drivers/media/platform/rcar-fcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/platform/rcar-fcp.c b/drivers/media/platform/rcar-fcp.c index bc50c69ee0c5..f7bcbf7677a0 100644 --- a/drivers/media/platform/rcar-fcp.c +++ b/drivers/media/platform/rcar-fcp.c @@ -99,14 +99,14 @@ EXPORT_SYMBOL_GPL(rcar_fcp_put); */ int rcar_fcp_enable(struct rcar_fcp_device *fcp) { - int error; + int ret; if (!fcp) return 0; - error = pm_runtime_get_sync(fcp->dev); - if (error < 0) - return error; + ret = pm_runtime_get_sync(fcp->dev); + if (ret < 0) + return ret; return 0; } |