]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
enetc: Fix inconsistent IS_ERR and PTR_ERR
authorYueHaibing <yuehaibing@huawei.com>
Tue, 7 Jan 2020 14:14:54 +0000 (22:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jan 2020 21:46:42 +0000 (13:46 -0800)
commit4addbcb387c9519b320a9411cad68f0c01e9ed4b
tree7a169daabee4ba5d3148b6ef661d3d344d57d982
parent0d6e5bfc9c5bc852d240cb35b0d850cdb660c4c9
enetc: Fix inconsistent IS_ERR and PTR_ERR

The proper pointer to be passed as argument is hw
Detected using Coccinelle.

Fixes: 6517798dd343 ("enetc: Make MDIO accessors more generic and export to include/linux/fsl")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c