linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns
Kejian Yan daa8cfd9da net: hns: fix warning of passing zero to 'PTR_ERR'
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>
2016-03-24 14:33:07 -04:00
..
hnae.c net: hns: enet specifies a reference to dsaf 2016-01-21 12:02:31 -08:00
hnae.h net: hns: fixed portid bug in sending manage pkt 2016-03-22 15:45:57 -04:00
hns_ae_adapt.c net: hns: fixes a bug of RSS 2016-03-22 15:45:58 -04:00
hns_dsaf_gmac.c net: hns: optimizate fmt of snprintf() 2016-03-24 14:33:06 -04:00
hns_dsaf_gmac.h net: add Hisilicon Network Subsystem DSAF support 2015-09-20 21:42:58 -07:00
hns_dsaf_mac.c net: hns: adds limitation for debug port mtu 2016-03-22 15:45:58 -04:00
hns_dsaf_mac.h net: hns: adds limitation for debug port mtu 2016-03-22 15:45:58 -04:00
hns_dsaf_main.c net: hns: fix a bug for cycle index 2016-03-24 14:33:06 -04:00
hns_dsaf_main.h net: hns: fix the bug about loopback 2016-03-07 15:44:51 -05:00
hns_dsaf_misc.c net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem 2015-12-04 14:36:15 -05:00
hns_dsaf_misc.h net: add Hisilicon Network Subsystem DSAF support 2015-09-20 21:42:58 -07:00
hns_dsaf_ppe.c net: hns: fix the bug about mtu setting 2016-03-22 15:45:58 -04:00
hns_dsaf_ppe.h net: hns: fix the bug about mtu setting 2016-03-22 15:45:58 -04:00
hns_dsaf_rcb.c net: hns: bug fix about hisilicon TSO BD mode 2016-01-18 11:52:37 -05:00
hns_dsaf_rcb.h net: hns: bug fix about hisilicon TSO BD mode 2016-01-18 11:52:37 -05:00
hns_dsaf_reg.h net: hns: add uc match for debug ports 2016-03-22 15:45:57 -04:00
hns_dsaf_xgmac.c net: hisilicon: fixes a bug when using ethtool -S 2015-10-15 06:01:41 -07:00
hns_dsaf_xgmac.h net: add Hisilicon Network Subsystem DSAF support 2015-09-20 21:42:58 -07:00
hns_enet.c net: hns: fix warning of passing zero to 'PTR_ERR' 2016-03-24 14:33:07 -04:00
hns_enet.h net: hns: enet specifies a reference to dsaf 2016-01-21 12:02:31 -08:00
hns_ethtool.c net: hns: bug fix for return values 2016-03-24 14:33:06 -04:00
Makefile net: add Hisilicon Network Subsystem basic ethernet support 2015-09-20 21:42:58 -07:00