Commit b288adad authored by Steve Longerbeam's avatar Steve Longerbeam Committed by Philipp Zabel

gpu: ipu-v3: image-convert: Remove need_abort flag

The need_abort flag is not really needed anymore in
__ipu_image_convert_abort(), remove it.
No functional changes.
Signed-off-by: default avatarSteve Longerbeam <slongerbeam@gmail.com>
Tested-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent aa60b261
...@@ -1531,7 +1531,6 @@ static void __ipu_image_convert_abort(struct ipu_image_convert_ctx *ctx) ...@@ -1531,7 +1531,6 @@ static void __ipu_image_convert_abort(struct ipu_image_convert_ctx *ctx)
struct ipu_image_convert_run *run, *active_run, *tmp; struct ipu_image_convert_run *run, *active_run, *tmp;
unsigned long flags; unsigned long flags;
int run_count, ret; int run_count, ret;
bool need_abort;
spin_lock_irqsave(&chan->irqlock, flags); spin_lock_irqsave(&chan->irqlock, flags);
...@@ -1550,13 +1549,11 @@ static void __ipu_image_convert_abort(struct ipu_image_convert_ctx *ctx) ...@@ -1550,13 +1549,11 @@ static void __ipu_image_convert_abort(struct ipu_image_convert_ctx *ctx)
if (active_run) if (active_run)
reinit_completion(&ctx->aborted); reinit_completion(&ctx->aborted);
need_abort = (run_count || active_run);
ctx->aborting = true; ctx->aborting = true;
spin_unlock_irqrestore(&chan->irqlock, flags); spin_unlock_irqrestore(&chan->irqlock, flags);
if (!need_abort) { if (!run_count && !active_run) {
dev_dbg(priv->ipu->dev, dev_dbg(priv->ipu->dev,
"%s: task %u: no abort needed for ctx %p\n", "%s: task %u: no abort needed for ctx %p\n",
__func__, chan->ic_task, ctx); __func__, chan->ic_task, ctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment