Commit 05372c45 authored by Zheng Yongjun's avatar Zheng Yongjun Committed by David S. Miller

net: marvell: prestera: simplify the return expression of prestera_port_close()

Simplify the return expression.
Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e3bc6566
......@@ -93,15 +93,10 @@ static int prestera_port_open(struct net_device *dev)
static int prestera_port_close(struct net_device *dev)
{
struct prestera_port *port = netdev_priv(dev);
int err;
netif_stop_queue(dev);
err = prestera_hw_port_state_set(port, false);
if (err)
return err;
return 0;
return prestera_hw_port_state_set(port, false);
}
static netdev_tx_t prestera_port_xmit(struct sk_buff *skb,
......
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