drm/etnaviv: simplify submit_create
authorLucas Stach <l.stach@pengutronix.de>
Fri, 24 Nov 2017 09:43:07 +0000 (10:43 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 2 Jan 2018 16:26:59 +0000 (17:26 +0100)
commitc52837238038f61b6511eadee94fcab622d635f0
treee397a964ff50688f22549599ec3385a9444be57b
parentb6d6223f5029d3c4fe466ce1711fe4cb23d06013
drm/etnaviv: simplify submit_create

Use kzalloc so other code doesn't need to worry about uninitialized members.
Drop the non-standard GFP flags, as we really don't want to fail the submit
when under slight memory pressure. Remove one level of indentation by using
an early return if the allocation failed. Also remove the unused drm device
member.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gem.h
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c