Commit 738dfb32 authored by Brent Pappas's avatar Brent Pappas Committed by Mauro Carvalho Chehab

media: atomisp: pci: sh_css: Inline single invocation of macro STATS_ENABLED()

Inline the single invocation of the macro STATS_ENABLED().
The macro abstraction is not necessary because the logic behind it is only
used once.

Link: https://lore.kernel.org/r/20230120171408.16099-1-bpappas@pappasbrent.comSigned-off-by: default avatarBrent Pappas <bpappas@pappasbrent.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 197ec0f4
...@@ -97,9 +97,6 @@ ...@@ -97,9 +97,6 @@
*/ */
#define JPEG_BYTES (16 * 1024 * 1024) #define JPEG_BYTES (16 * 1024 * 1024)
#define STATS_ENABLED(stage) (stage && stage->binary && stage->binary->info && \
(stage->binary->info->sp.enable.s3a || stage->binary->info->sp.enable.dis))
struct sh_css my_css; struct sh_css my_css;
int __printf(1, 0) (*sh_css_printf)(const char *fmt, va_list args) = NULL; int __printf(1, 0) (*sh_css_printf)(const char *fmt, va_list args) = NULL;
...@@ -3743,7 +3740,9 @@ ia_css_pipe_enqueue_buffer(struct ia_css_pipe *pipe, ...@@ -3743,7 +3740,9 @@ ia_css_pipe_enqueue_buffer(struct ia_css_pipe *pipe,
* The SP will read the params after it got * The SP will read the params after it got
* empty 3a and dis * empty 3a and dis
*/ */
if (STATS_ENABLED(stage)) { if (stage->binary && stage->binary->info &&
(stage->binary->info->sp.enable.s3a ||
stage->binary->info->sp.enable.dis)) {
/* there is a stage that needs it */ /* there is a stage that needs it */
return_err = ia_css_bufq_enqueue_buffer(thread_id, return_err = ia_css_bufq_enqueue_buffer(thread_id,
queue_id, queue_id,
......
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