[Linux-stm32] [PATCH net-next] net: stmmac: Fix return value check in qcom_ethqos_probe()
David Miller
davem at davemloft.net
Fri Jan 25 06:13:47 UTC 2019
From: Wei Yongjun <weiyongjun1 at huawei.com>
Date: Wed, 23 Jan 2019 06:19:18 +0000
> In case of error, the function devm_clk_get() returns ERR_PTR() and
> never returns NULL. The NULL test in the return value check should be
> replaced with IS_ERR().
>
> Fixes: a7c30e62d4b8 ("net: stmmac: Add driver for Qualcomm ethqos")
> Signed-off-by: Wei Yongjun <weiyongjun1 at huawei.com>
Applied, thanks.
More information about the Linux-stm32
mailing list