[PATCH 14/27] drm/etnaviv: simplify submit_create

Philipp Zabel p.zabel at pengutronix.de
Fri Dec 1 16:47:11 UTC 2017


On Fri, 2017-12-01 at 11:36 +0100, Lucas Stach wrote:
> 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 at pengutronix.de>

Reviewed-by: Philipp Zabel <p.zabel at pengutronix.de>

regards
Philipp



More information about the dri-devel mailing list