linux/drivers/net/ethernet/hisilicon/hns
Pan Bian d2083d0e92 net: hns: set correct return value
The function of_parse_phandle() returns a NULL pointer if it cannot
resolve a phandle property to a device_node pointer. In function
hns_nic_dev_probe(), its return value is passed to PTR_ERR to extract
the error code. However, in this case, the extracted error code will
always be zero, which is unexpected.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-01 12:17:44 +09:00
..
hnae.c net: hns: Add self-adaptive interrupt coalesce support in hns driver 2017-08-03 09:21:14 -07:00
hnae.h net: hns: Add self-adaptive interrupt coalesce support in hns driver 2017-08-03 09:21:14 -07:00
hns_ae_adapt.c net: hns: Add self-adaptive interrupt coalesce support in hns driver 2017-08-03 09:21:14 -07:00
hns_dsaf_gmac.c net: hns: fix ethtool_get_strings overflow in hns driver 2017-05-02 15:08:21 -04:00
hns_dsaf_gmac.h
hns_dsaf_mac.c net: hns: support deferred probe when no mdio 2017-04-30 22:39:24 -04:00
hns_dsaf_mac.h format-security: move static strings to const 2017-05-08 17:15:14 -07:00
hns_dsaf_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-04-06 08:24:51 -07:00
hns_dsaf_main.h net: hns: Some checkpatch.pl script & warning fixes 2017-04-03 14:48:43 -07:00
hns_dsaf_misc.c net: hns: add acpi function of xge led control 2017-07-14 08:18:07 -07:00
hns_dsaf_misc.h
hns_dsaf_ppe.c net: hns: fix ethtool_get_strings overflow in hns driver 2017-05-02 15:08:21 -04:00
hns_dsaf_ppe.h
hns_dsaf_rcb.c net: hns: fix ethtool_get_strings overflow in hns driver 2017-05-02 15:08:21 -04:00
hns_dsaf_rcb.h net: hns: support deferred probe when can not obtain irq 2017-04-30 22:39:24 -04:00
hns_dsaf_reg.h net: hns: Avoid Hip06 chip TX packet line bug 2017-04-03 14:48:43 -07:00
hns_dsaf_xgmac.c net: hns: fix ethtool_get_strings overflow in hns driver 2017-05-02 15:08:21 -04:00
hns_dsaf_xgmac.h
hns_enet.c net: hns: set correct return value 2017-11-01 12:17:44 +09:00
hns_enet.h net: hns: Add self-adaptive interrupt coalesce support in hns driver 2017-08-03 09:21:14 -07:00
hns_ethtool.c net: hns: Add self-adaptive interrupt coalesce support in hns driver 2017-08-03 09:21:14 -07:00
Makefile