[media] g2d: remove unused var

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>
This commit is contained in:
Mauro Carvalho Chehab 2014-08-26 10:52:56 -03:00
parent af425be8b5
commit dc916aa78a

View file

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