panfrost: Hoist job != NULL check
[mesa.git] / src / gallium / drivers / panfrost / pan_job.c
index bfa73a7f334f0996e638184d3ee9e83e759b629d..4d8ec2eadc9ee63cfcd673606dd969391a56cc58 100644 (file)
@@ -204,14 +204,12 @@ panfrost_job_submit(struct panfrost_context *ctx, struct panfrost_job *job)
 {
         int ret;
 
+        assert(job);
         panfrost_scoreboard_link_batch(job);
 
         bool has_draws = job->last_job.gpu;
         bool is_scanout = panfrost_is_scanout(ctx);
 
-        if (!job)
-                return;
-
         ret = panfrost_drm_submit_vs_fs_job(ctx, has_draws, is_scanout);
 
         if (ret)