net: phy: micrel: remove redundant assignment to pointer of_node
authorColin Ian King <colin.king@canonical.com>
Sun, 13 Jun 2021 13:27:40 +0000 (14:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jun 2021 19:40:58 +0000 (12:40 -0700)
commitce4f8afd85d6871e3ad76ce737fbbfc0521fa3e4
treef9950f97bac5893c353e258f3b3e2c997c64ad34
parent9917060fc30a40f1ef899dc8c61ae964a9a4407c
net: phy: micrel: remove redundant assignment to pointer of_node

The pointer of_node is being initialized with a value that is never
read and it is being updated later with a new value inside a do-while
loop. The initialization is redundant and can be removed and the
pointer dev is no longer required and can be removed too.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c