]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05bb54e2e9b928d3306ae258a513dee0f059c46d
tree7cd5a3575cb3cbfbe144b940c9c6993613a53b3b
parentedd13c2c3fa27530e7b6b9b892751bc7eee2c568
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