diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-01-21 23:00:06 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-05 14:32:02 -0500 |
commit | e82564475eab196b2e8a11572fff8e268329530e (patch) | |
tree | fd3452abd16b2fd7d006c2e26758159ebddddd3b /drivers/media/platform/s5p-mfc/s5p_mfc.c | |
parent | 97466d0da3b08e087e517725ab56c7a2a2df706f (diff) |
[media] s5p-mfc: Use WARN_ON(condition) directly
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>
Diffstat (limited to 'drivers/media/platform/s5p-mfc/s5p_mfc.c')
-rw-r--r-- | drivers/media/platform/s5p-mfc/s5p_mfc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index 6347f09ca783..5050168ad211 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c | |||
@@ -582,8 +582,7 @@ static void s5p_mfc_handle_stream_complete(struct s5p_mfc_ctx *ctx, | |||
582 | 582 | ||
583 | clear_work_bit(ctx); | 583 | clear_work_bit(ctx); |
584 | 584 | ||
585 | if (test_and_clear_bit(0, &dev->hw_lock) == 0) | 585 | WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); |
586 | WARN_ON(1); | ||
587 | 586 | ||
588 | s5p_mfc_clock_off(); | 587 | s5p_mfc_clock_off(); |
589 | wake_up(&ctx->queue); | 588 | wake_up(&ctx->queue); |