Skip to content
Commit ff981595 authored by Markus Elfring's avatar Markus Elfring Committed by Lucas Stach
Browse files

drm/etnaviv: Improve unlocking of a mutex in etnaviv_iommu_map_gem()



Add a jump target so that a call of the function "mutex_unlock" is stored
only once at the end of this function implementation.
Replace three calls by goto statements.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
parent b6047eba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment