diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2019-11-06 18:06:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-07 06:29:43 +0100 |
commit | 226df3ef1c02a99e7303d91dc27267fae529a820 (patch) | |
tree | f5c4c81c1e1df168c55715e9cd637652dc07e3df /net/llc | |
parent | net: openvswitch: select vport upcall portid directly (diff) | |
download | linux-226df3ef1c02a99e7303d91dc27267fae529a820.tar.xz linux-226df3ef1c02a99e7303d91dc27267fae529a820.zip |
dpaa2-eth: fix an always true condition in dpaa2_mac_get_if_mode
Convert the phy_mode() function to return the if_mode through an
argument, similar to the new form of of_get_phy_mode().
This will help with handling errors in a common manner and also will fix
an always true condition.
Fixes: 0c65b2b90d13 ("net: of_get_phy_mode: Change API to solve int/unit warnings")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/llc')
0 files changed, 0 insertions, 0 deletions