1
0
Fork 0

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: Libo Chen <libo.chen@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
wifi-calibration
Libo Chen 2013-08-21 15:02:27 +08:00 committed by David S. Miller
parent dcbe8a1a42
commit 63f076e960
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}