panfrost: Hoist job != NULL check

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-08-21 09:32:55 -07:00
parent 9cee21f0c9
commit a3c1ab2e9a

View 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)