Message ID | 20241001184607.193461-11-rosenp@gmail.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: lantiq_etop: some cleanups | expand |
diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c index 355b96ecc5ec..cc5b94bc30b9 100644 --- a/drivers/net/ethernet/lantiq_etop.c +++ b/drivers/net/ethernet/lantiq_etop.c @@ -661,12 +661,8 @@ ltq_etop_probe(struct platform_device *pdev) priv->ch[i].netdev = dev; } - err = devm_register_netdev(&pdev->dev, dev); - if (err) - return err; - platform_set_drvdata(pdev, dev); - return 0; + return devm_register_netdev(&pdev->dev, dev); } static void ltq_etop_remove(struct platform_device *pdev)
Simpler to do so. The error is not handled anyways. Signed-off-by: Rosen Penev <rosenp@gmail.com> --- drivers/net/ethernet/lantiq_etop.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)