*/
 #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;
 
 int  __printf(1, 0) (*sh_css_printf)(const char *fmt, va_list args) = NULL;
                         * The SP will read the params after it got
                         * 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 */
                                return_err = ia_css_bufq_enqueue_buffer(thread_id,
                                                                        queue_id,