]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a21470f8c0bec4cb3fe343602aa53ef736d7c32
treee397a964ff50688f22549599ec3385a9444be57b
parent6ab507e139caf4bc10d53e2942091892be9fd9c3
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