]> git.baikalelectronics.ru Git - kernel.git/commit
net: xilinx: remove redundant null check before clk_disable_unprepare()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Mon, 7 Sep 2020 13:02:03 +0000 (21:02 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 7 Sep 2020 20:34:14 +0000 (13:34 -0700)
commit9e87f4e4083ff89920e9214081a5179f542a3a85
treef7b5de3c775ed98d591c8ed1495378eba619d9ce
parent619595c09caa6e9b342e9c1ac4986c0f5fdb9e3f
net: xilinx: remove redundant null check before clk_disable_unprepare()

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@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c