]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev: sh_mobile_lcdcfb: Remove redundant null check before clk_prepare_enable...
authorXu Wang <vulab@iscas.ac.cn>
Wed, 14 Oct 2020 08:57:22 +0000 (08:57 +0000)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 16 Oct 2020 09:50:31 +0000 (11:50 +0200)
commita5e7b8ac7f6432986d320cee41d581fd5d240f1c
tree11bf423b9ecab43bc89b4ab10e4b27ce738ac34c
parentf541e23133a57c000416fc0d39ce79460694a9ca
video: fbdev: sh_mobile_lcdcfb: Remove redundant null check before clk_prepare_enable/clk_disable_unprepare

Because clk_prepare_enable() and clk_disable_unprepare() already checked
NULL clock parameter, so the additional checks are unnecessary, just
remove them.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20201014085722.26069-1-vulab@iscas.ac.cn
drivers/video/fbdev/sh_mobile_lcdcfb.c