]> git.baikalelectronics.ru Git - kernel.git/commit
Input: bcm-keypad - remove unneeded NULL check before clk_disable_unprepare
authorWan Jiabing <wanjiabing@vivo.com>
Mon, 16 May 2022 22:24:31 +0000 (15:24 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 17 May 2022 04:10:12 +0000 (21:10 -0700)
commit1922cc9c20a38a12ca1d8e44d3ccede62b59d5e8
tree216794489227ec1f36cdd542ae63e14744f03ed2
parentc8994b30d71d64d5dcc9bc0edbfdf367171aa96f
Input: bcm-keypad - remove unneeded NULL check before clk_disable_unprepare

clk_disable_unprepare() already checks NULL by using IS_ERR_OR_NULL.
Remove unneeded NULL check for kp->clk.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Link: https://lore.kernel.org/r/20220516085511.10679-1-wanjiabing@vivo.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/bcm-keypad.c