]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] s5p_cec: get rid of an unused var
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 14:44:06 +0000 (11:44 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 14:44:06 +0000 (11:44 -0300)
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>
drivers/staging/media/s5p-cec/s5p_cec.c

index 3844f3915220daebbae05a651bc7a74b008e731d..f90b7c4e48fe03f28521155e8c9512e189d1cb61 100644 (file)
@@ -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);