]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] g2d: remove unused var
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 26 Aug 2014 13:52:56 +0000 (10:52 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 26 Aug 2014 21:52:11 +0000 (18:52 -0300)
drivers/media/platform/s5p-g2d/g2d.c: In function 'job_abort':
drivers/media/platform/s5p-g2d/g2d.c:493:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
  int ret;
      ^

The job_abort function returns void. No sense to get the
returned argument, if this won't be used.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s5p-g2d/g2d.c

index 357af1ebaeda2791667e8f5c32b12fe7f45bf18a..d79e214ce8ce3e7526027aea3141c16f9a609a39 100644 (file)
@@ -490,14 +490,13 @@ static void job_abort(void *prv)
 {
        struct g2d_ctx *ctx = prv;
        struct g2d_dev *dev = ctx->dev;
-       int ret;
 
        if (dev->curr == NULL) /* No job currently running */
                return;
 
-       ret = wait_event_timeout(dev->irq_queue,
-               dev->curr == NULL,
-               msecs_to_jiffies(G2D_TIMEOUT));
+       wait_event_timeout(dev->irq_queue,
+                          dev->curr == NULL,
+                          msecs_to_jiffies(G2D_TIMEOUT));
 }
 
 static void device_run(void *prv)