Skip to content

Commit

Permalink
[media] s5p-mfc: Use WARN_ON(condition) directly
Browse files Browse the repository at this point in the history
Use WARN_ON(condition) directly instead of wrapping around an if
condition.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sachin Kamat authored and Mauro Carvalho Chehab committed Feb 5, 2013
1 parent 97466d0 commit e825644
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/platform/s5p-mfc/s5p_mfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,7 @@ static void s5p_mfc_handle_stream_complete(struct s5p_mfc_ctx *ctx,

clear_work_bit(ctx);

if (test_and_clear_bit(0, &dev->hw_lock) == 0)
WARN_ON(1);
WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0);

s5p_mfc_clock_off();
wake_up(&ctx->queue);
Expand Down

0 comments on commit e825644

Please sign in to comment.