net: dsa: lan9303: fix variable 'res' set but not used
authorAndrew Lunn <andrew@lunn.ch>
Sun, 5 Jul 2020 20:55:55 +0000 (22:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jul 2020 22:48:19 +0000 (15:48 -0700)
commit9534f1e9084452afb3f8bc0fcdb81a95a6b8392a
tree43b9b2b8f753e870a5ad5899c0b969bce8dba5a9
parentda31735cb9db61dccea0bc9eeb581b41106a247a
net: dsa: lan9303: fix variable 'res' set but not used

Since lan9303_adjust_link() is a void function, there is no option to
return an error. So just remove the variable and lets any errors be
discarded.

Cc: Egil Hjelmeland <privat@egil-hjelmeland.no>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c