diff options
| author | Wei Yongjun <weiyongjun1@huawei.com> | 2019-01-23 06:19:18 +0000 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-01-24 22:13:03 -0800 |
| commit | 8f4ebaaa8d97dc531a3f947a8d30a5a70fe38743 (patch) | |
| tree | 2fb630b9dd5bacfc2011d19efbdbe2e2df670933 /include/linux/flex_array.h | |
| parent | 843ef94e3374b8c2afdff3a68270d4b09964e165 (diff) | |
| download | cachepc-linux-8f4ebaaa8d97dc531a3f947a8d30a5a70fe38743.tar.gz cachepc-linux-8f4ebaaa8d97dc531a3f947a8d30a5a70fe38743.zip | |
net: stmmac: Fix return value check in qcom_ethqos_probe()
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@huawei.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Acked-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/flex_array.h')
0 files changed, 0 insertions, 0 deletions
