Subject: [PATCH -next] net: marvell: prestera: remove reduntant code

From: Sebin Sebastian <[email-masked]>
Date: Mon, 1 Aug 2022 09:37:31 +0530

Fixes the coverity warning 'EVALUATION_ORDER' violation. port is written
twice with the same value.

Fixes: Coverity CID 1519056 (Incorrect expression)
Signed-off-by: Sebin Sebastian <[email-masked]>
---
 drivers/net/ethernet/marvell/prestera/prestera_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/marvell/prestera/prestera_main.c b/drivers/net/ethernet/marvell/prestera/prestera_main.c
index c267ca1ccdba..0df904455d76 100644
--- a/drivers/net/ethernet/marvell/prestera/prestera_main.c
+++ b/drivers/net/ethernet/marvell/prestera/prestera_main.c
@@ -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;
 
-- 
2.34.1