net: marvell: prestera: remove reduntant code
Fixes the coverity warning 'EVALUATION_ORDER' violation. port is written twice with the same value. Signed-off-by: Sebin Sebastian <mailmesebin00@gmail.com> Link: https://lore.kernel.org/r/20220801040731.34741-1-mailmesebin00@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Родитель
80ef928643
Коммит
969e26c63d
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче