Commit 6860b56c authored by Rob Clark's avatar Rob Clark

drm/msm: de-indent submit_create()

Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 1193c3bc
...@@ -40,17 +40,18 @@ static struct msm_gem_submit *submit_create(struct drm_device *dev, ...@@ -40,17 +40,18 @@ static struct msm_gem_submit *submit_create(struct drm_device *dev,
int sz = sizeof(*submit) + (nr * sizeof(submit->bos[0])); int sz = sizeof(*submit) + (nr * sizeof(submit->bos[0]));
submit = kmalloc(sz, GFP_TEMPORARY | __GFP_NOWARN | __GFP_NORETRY); submit = kmalloc(sz, GFP_TEMPORARY | __GFP_NOWARN | __GFP_NORETRY);
if (submit) { if (!submit)
submit->dev = dev; return NULL;
submit->gpu = gpu;
/* initially, until copy_from_user() and bo lookup succeeds: */ submit->dev = dev;
submit->nr_bos = 0; submit->gpu = gpu;
submit->nr_cmds = 0;
INIT_LIST_HEAD(&submit->bo_list); /* initially, until copy_from_user() and bo lookup succeeds: */
ww_acquire_init(&submit->ticket, &reservation_ww_class); submit->nr_bos = 0;
} submit->nr_cmds = 0;
INIT_LIST_HEAD(&submit->bo_list);
ww_acquire_init(&submit->ticket, &reservation_ww_class);
return submit; return submit;
} }
......
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