Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63f076e9 authored by Libo Chen's avatar Libo Chen Committed by David S. Miller
Browse files

net: sunbmac: remove unnecessary dev_set_drvdata()



Unnecessary dev_set_drvdata() is removed, because the driver core
clears the driver data to NULL after device_release or on probe failure.

Signed-off-by: default avatarLibo Chen <libo.chen@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dcbe8a1a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1259,8 +1259,6 @@ static int bigmac_sbus_remove(struct platform_device *op)

	free_netdev(net_dev);

	dev_set_drvdata(&op->dev, NULL);

	return 0;
}