diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2021-07-29 07:03:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-30 00:18:42 +0300 |
commit | 3e12361b6d23f793580a50a6008633501c56ea1d (patch) | |
tree | 46ec46db50b5a999c2b8e46ef7a7d37b3b5dcc39 /drivers/net/ethernet/broadcom/bcm63xx_enet.c | |
parent | bea7907837c57a0aaac009931eb14efb056dafab (diff) | |
download | linux-3e12361b6d23f793580a50a6008633501c56ea1d.tar.xz |
bcm63xx_enet: delete a redundant assignment
In the function bcm_enetsw_probe(), 'ret' will be assigned by
bcm_enet_change_mtu(), so 'ret = 0' make no sense.
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcm63xx_enet.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bcm63xx_enet.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c index 5ec056a26cf8..d56886300ecf 100644 --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c @@ -2649,7 +2649,6 @@ static int bcm_enetsw_probe(struct platform_device *pdev) if (!res_mem || irq_rx < 0) return -ENODEV; - ret = 0; dev = alloc_etherdev(sizeof(*priv)); if (!dev) return -ENOMEM; |