[PATCH net-next] net: ethernet: dwmac: remove redundant null check before clk_disable_unprepare()

Jakub Kicinski kuba at kernel.org
Mon Sep 7 16:38:42 EDT 2020


On Mon, 7 Sep 2020 20:46:54 +0800 Zhang Changzhong wrote:
> Because clk_prepare_enable() and clk_disable_unprepare() already checked
> NULL clock parameter, so the additional checks are unnecessary, just
> remove them.
> 
> Reported-by: Hulk Robot <hulkci at huawei.com>
> Signed-off-by: Zhang Changzhong <zhangchangzhong at huawei.com>

Applied.



More information about the linux-arm-kernel mailing list