]> www.infradead.org Git - users/jedix/linux-maple.git/commit
watchdog: npcm: Remove unnecessary NULL check before clk_prepare_enable/clk_disable_u...
authorChen Ni <nichen@iscas.ac.cn>
Thu, 13 Mar 2025 08:44:19 +0000 (16:44 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 16 Mar 2025 10:00:32 +0000 (11:00 +0100)
commitad3746700ae238a96a9a4244d02a2e8eb00f157e
tree0f4e80f29cd0a2e87c6903c0b87edc811c4b8a52
parentc40524d1615a72548adc30dbfb15c981fd03dacb
watchdog: npcm: Remove unnecessary NULL check before clk_prepare_enable/clk_disable_unprepare

clk_prepare_enable() and clk_disable_unprepare() already checked
NULL clock parameter.Remove unneeded NULL check for clk here.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20250313084420.2481763-1-nichen@iscas.ac.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/npcm_wdt.c