summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s5p-g2d
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-08-26 10:52:56 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-08-26 18:52:11 -0300
commitdc916aa78aec95ce93d9e9e323ba3a5a88b1d516 (patch)
treefe2a26917e2dbe914a856713743f9c1faf0ae760 /drivers/media/platform/s5p-g2d
parentaf425be8b51b02c9bb7bc2fdeb7b4c9ccb25fc5a (diff)
downloadop-kernel-dev-dc916aa78aec95ce93d9e9e323ba3a5a88b1d516.zip
op-kernel-dev-dc916aa78aec95ce93d9e9e323ba3a5a88b1d516.tar.gz
[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>
Diffstat (limited to 'drivers/media/platform/s5p-g2d')
-rw-r--r--drivers/media/platform/s5p-g2d/g2d.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/media/platform/s5p-g2d/g2d.c b/drivers/media/platform/s5p-g2d/g2d.c
index 357af1e..d79e214 100644
--- a/drivers/media/platform/s5p-g2d/g2d.c
+++ b/drivers/media/platform/s5p-g2d/g2d.c
@@ -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)
OpenPOWER on IntegriCloud