net: phy: micrel: fix config_intr error handling
authorJohan Hovold <johan@kernel.org>
Tue, 11 Nov 2014 19:00:08 +0000 (20:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Nov 2014 18:55:35 +0000 (13:55 -0500)
commit5bb8fc0d1073e867f381316cb1c348fa45e2d602
treed92b62f2a6c00e3248df2c99a757b58efe6e418b
parentc88c7d3204e66faf1f24402d551ac1d0b400e3ff
net: phy: micrel: fix config_intr error handling

Make sure never to update the control register with random data (an
error code) by checking the return value after reading it.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c