Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306488
b: refs/heads/master
c: 2356877
h: refs/heads/master
v: v3
  • Loading branch information
Sachin Kamat authored and Mauro Carvalho Chehab committed May 20, 2012
1 parent bf8a493 commit 30fc8c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a13bba4f35eee67552b0fcfb0790d9a0f5f5fd07
refs/heads/master: 2356877cb12969cac1572f195d541a2b49d7d78e
12 changes: 6 additions & 6 deletions trunk/drivers/media/video/s5p-g2d/g2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,11 @@ static void job_abort(void *prv)
struct g2d_dev *dev = ctx->dev;
int ret;

if (dev->curr == 0) /* No job currently running */
if (dev->curr == NULL) /* No job currently running */
return;

ret = wait_event_timeout(dev->irq_queue,
dev->curr == 0,
dev->curr == NULL,
msecs_to_jiffies(G2D_TIMEOUT));
}

Expand Down Expand Up @@ -599,19 +599,19 @@ static irqreturn_t g2d_isr(int irq, void *prv)
g2d_clear_int(dev);
clk_disable(dev->gate);

BUG_ON(ctx == 0);
BUG_ON(ctx == NULL);

src = v4l2_m2m_src_buf_remove(ctx->m2m_ctx);
dst = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx);

BUG_ON(src == 0);
BUG_ON(dst == 0);
BUG_ON(src == NULL);
BUG_ON(dst == NULL);

v4l2_m2m_buf_done(src, VB2_BUF_STATE_DONE);
v4l2_m2m_buf_done(dst, VB2_BUF_STATE_DONE);
v4l2_m2m_job_finish(dev->m2m_dev, ctx->m2m_ctx);

dev->curr = 0;
dev->curr = NULL;
wake_up(&dev->irq_queue);
return IRQ_HANDLED;
}
Expand Down

0 comments on commit 30fc8c6

Please sign in to comment.