summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-06-28 11:44:06 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-06-28 11:44:06 -0300
commitc51202d358409cb7afb9c01b6fe440e5e398ae9d (patch)
treefb49511929d039fbafe49fdc42bc41f5f9f2a431 /drivers/staging
parent78fc853b5532b22639e691357fd59aa19833d81a (diff)
[media] s5p_cec: get rid of an unused var
drivers/staging/media/s5p-cec/s5p_cec.c: In function 's5p_cec_adap_enable': drivers/staging/media/s5p-cec/s5p_cec.c:42:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] int ret; ^~~ Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/s5p-cec/s5p_cec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/media/s5p-cec/s5p_cec.c b/drivers/staging/media/s5p-cec/s5p_cec.c
index 3844f3915220..f90b7c4e48fe 100644
--- a/drivers/staging/media/s5p-cec/s5p_cec.c
+++ b/drivers/staging/media/s5p-cec/s5p_cec.c
@@ -39,10 +39,9 @@ MODULE_PARM_DESC(debug, "debug level (0-2)");
static int s5p_cec_adap_enable(struct cec_adapter *adap, bool enable)
{
struct s5p_cec_dev *cec = adap->priv;
- int ret;
if (enable) {
- ret = pm_runtime_get_sync(cec->dev);
+ pm_runtime_get_sync(cec->dev);
s5p_cec_reset(cec);