net: phy: initialize rc to zero to avoid returning garbage value
authorColin Ian King <colin.king@canonical.com>
Fri, 12 Aug 2016 20:29:24 +0000 (21:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 22:51:49 +0000 (15:51 -0700)
commitd16d9d2ad778e8247617c10703dfd749c776f242
tree1a529424559e184ee844ff57b8a22a20c9cd1b48
parent1e10f3fbfb1c351768576b756c60f83922b65e5e
net: phy: initialize rc to zero to avoid returning garbage value

In the case where phydev->interrupts is not PHY_INTERRUPT_ENABLED
function vsc85xx_ack_interrupt is returning an uninitialized
garbage value.  Fix this by initializing rc to zero.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc.c