commit | 1dbba4cb8df73844ea0d7c1fd11e1ea35f1670b7 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Apr 14 22:10:41 2017 +0300 |
committer | David S. Miller <davem@davemloft.net> | Mon Apr 17 15:10:42 2017 -0400 |
tree | 400030a932de59b62b9ab16b8969e0c0b89e9371 | |
parent | 450cc8cce23d0db11b19fa89973ddb6d5edd010c [diff] |
net: phy: test the right variable in phy_write_mmd() This is a copy and paste buglet. We meant to test for ->write_mmd but we test for ->read_mmd. Fixes: 1ee6b9bc6206 ("net: phy: make phy_(read|write)_mmd() generic MMD accessors") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>