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

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.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 80ef9286
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -290,7 +290,7 @@ static int prestera_pcs_config(struct phylink_pcs *pcs,
			       const unsigned long *advertising,
			       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;
	int err;