]> git.baikalelectronics.ru Git - kernel.git/commit
drm: msm: adreno: Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) +PTR_ERR
authorMamta Shukla <mamtashukla555@gmail.com>
Thu, 18 Oct 2018 20:48:15 +0000 (02:18 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Oct 2018 13:59:24 +0000 (15:59 +0200)
commitbdbd8fac4377dc6e2f99f612e609f063bdf9cdd9
tree01bf85da1f66cdef70d4cdb44ca3256152ece38d
parent6d36e053583d74a759cdeeb67376af9c2e4045c5
drm: msm: adreno: Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) +PTR_ERR

Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR because its
better to have inlined function rather than code-opened implementation.

Signed-off-by: Mamta Shukla <mamtashukla555@gmail.com>
Reviewed-by: Sean Paul <sean@poorly.run>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181018204815.GA23390@armorer
drivers/gpu/drm/msm/adreno/a5xx_gpu.c