]> git.baikalelectronics.ru Git - kernel.git/commit
drm/lima: Reduce number of PTR_ERR() calls
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 21 Jun 2019 16:21:16 +0000 (18:21 +0200)
committerQiang Yu <yuq825@gmail.com>
Sun, 23 Jun 2019 03:23:18 +0000 (11:23 +0800)
commitf62ad0e8f6bb8662082f0fa3b1fbdfe9eae4b661
treee69486e743d04dfd01a48ccbbb035f3f389154b6
parent4e4e3bd42e705f8af1c0613325393beef3fd89fc
drm/lima: Reduce number of PTR_ERR() calls

Store the PTR_ERR() result in local variable in clock init error path.
This makes the code consistent with similar section in regulator init
code.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190621162117.22533-3-krzk@kernel.org
drivers/gpu/drm/lima/lima_device.c