net: phy: test the right variable in phy_write_mmd()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Apr 2017 19:10:41 +0000 (22:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 19:10:42 +0000 (15:10 -0400)
commit1dbba4cb8df73844ea0d7c1fd11e1ea35f1670b7
tree400030a932de59b62b9ab16b8969e0c0b89e9371
parent450cc8cce23d0db11b19fa89973ddb6d5edd010c
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>
drivers/net/phy/phy-core.c