drm/msm: de-indent submit_create()
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
1193c3bcb5
commit
6860b56c4b
|
@ -40,7 +40,9 @@ static struct msm_gem_submit *submit_create(struct drm_device *dev,
|
|||
int sz = sizeof(*submit) + (nr * sizeof(submit->bos[0]));
|
||||
|
||||
submit = kmalloc(sz, GFP_TEMPORARY | __GFP_NOWARN | __GFP_NORETRY);
|
||||
if (submit) {
|
||||
if (!submit)
|
||||
return NULL;
|
||||
|
||||
submit->dev = dev;
|
||||
submit->gpu = gpu;
|
||||
|
||||
|
@ -50,7 +52,6 @@ static struct msm_gem_submit *submit_create(struct drm_device *dev,
|
|||
|
||||
INIT_LIST_HEAD(&submit->bo_list);
|
||||
ww_acquire_init(&submit->ticket, &reservation_ww_class);
|
||||
}
|
||||
|
||||
return submit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue