mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
daa8cfd9da
There is a misuse of PTR as shown below: ae_node = (void *)of_parse_phandle(dev->of_node, "ae-handle", 0); if (IS_ERR_OR_NULL(ae_node)) { ret = PTR_ERR(ae_node); dev_err(dev, "not find ae-handle\n"); goto out_read_prop_fail; } if the ae_node is NULL, PTR_ERR(ae_node) means it returns success. And the return value should be -ENODEV. Signed-off-by: Kejian Yan <yankejian@huawei.com> Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
hnae.c | ||
hnae.h | ||
hns_ae_adapt.c | ||
hns_dsaf_gmac.c | ||
hns_dsaf_gmac.h | ||
hns_dsaf_mac.c | ||
hns_dsaf_mac.h | ||
hns_dsaf_main.c | ||
hns_dsaf_main.h | ||
hns_dsaf_misc.c | ||
hns_dsaf_misc.h | ||
hns_dsaf_ppe.c | ||
hns_dsaf_ppe.h | ||
hns_dsaf_rcb.c | ||
hns_dsaf_rcb.h | ||
hns_dsaf_reg.h | ||
hns_dsaf_xgmac.c | ||
hns_dsaf_xgmac.h | ||
hns_enet.c | ||
hns_enet.h | ||
hns_ethtool.c | ||
Makefile |