OSDN Git Service

drm/etnaviv: Improve unlocking of a mutex in etnaviv_iommu_map_gem()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 23 Oct 2017 19:27:30 +0000 (21:27 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 1 Dec 2017 16:37:31 +0000 (17:37 +0100)
commitff9815957768b6e76d6895a0597d1ede05b4378b
tree7cd5a3575cb3cbfbe144b940c9c6993613a53b3b
parentb6047ebaf7b3fb63c3ad49ec9c381a0e0b9fb82a
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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_mmu.c