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

From: Jakub Kicinski
Date: Mon Sep 07 2020 - 16:39:09 EST


On Mon, 7 Sep 2020 13:14:50 +0000 Andy Duan wrote:
> From: Zhang Changzhong <zhangchangzhong@xxxxxxxxxx> Sent: Monday, September 7, 2020 8:50 PM
> > 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@xxxxxxxxxx>
> > Signed-off-by: Zhang Changzhong <zhangchangzhong@xxxxxxxxxx>
>
> Acked-by: Fugang Duan <fugang.duan@xxxxxxx>

Applied, thanks!