diff options
author | Wan Jiabing <wanjiabing@vivo.com> | 2022-05-17 01:24:31 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-05-17 07:10:12 +0300 |
commit | 1922cc9c20a38a12ca1d8e44d3ccede62b59d5e8 (patch) | |
tree | 216794489227ec1f36cdd542ae63e14744f03ed2 /drivers/input/keyboard/bcm-keypad.c | |
parent | c8994b30d71d64d5dcc9bc0edbfdf367171aa96f (diff) | |
download | linux-1922cc9c20a38a12ca1d8e44d3ccede62b59d5e8.tar.xz |
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>
Diffstat (limited to 'drivers/input/keyboard/bcm-keypad.c')
-rw-r--r-- | drivers/input/keyboard/bcm-keypad.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/keyboard/bcm-keypad.c b/drivers/input/keyboard/bcm-keypad.c index 2b771c3a5578..166d6023a538 100644 --- a/drivers/input/keyboard/bcm-keypad.c +++ b/drivers/input/keyboard/bcm-keypad.c @@ -183,8 +183,7 @@ static void bcm_kp_stop(const struct bcm_kp *kp) writel(0xFFFFFFFF, kp->base + KPICR0_OFFSET); writel(0xFFFFFFFF, kp->base + KPICR1_OFFSET); - if (kp->clk) - clk_disable_unprepare(kp->clk); + clk_disable_unprepare(kp->clk); } static int bcm_kp_open(struct input_dev *dev) |