Commit 969e26c6 authored by Sebin Sebastian's avatar Sebin Sebastian Committed by Jakub Kicinski

net: marvell: prestera: remove reduntant code

Fixes the coverity warning 'EVALUATION_ORDER' violation. port is written
twice with the same value.
Signed-off-by: default avatarSebin Sebastian <mailmesebin00@gmail.com>
Link: https://lore.kernel.org/r/20220801040731.34741-1-mailmesebin00@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 80ef9286
...@@ -290,7 +290,7 @@ static int prestera_pcs_config(struct phylink_pcs *pcs, ...@@ -290,7 +290,7 @@ static int prestera_pcs_config(struct phylink_pcs *pcs,
const unsigned long *advertising, const unsigned long *advertising,
bool permit_pause_to_mac) bool permit_pause_to_mac)
{ {
struct prestera_port *port = port = prestera_pcs_to_port(pcs); struct prestera_port *port = prestera_pcs_to_port(pcs);
struct prestera_port_mac_config cfg_mac; struct prestera_port_mac_config cfg_mac;
int err; int err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment