net: sunhme: remove unnecessary dev_set_drvdata()
authorLibo Chen <libo.chen@huawei.com>
Wed, 21 Aug 2013 07:02:31 +0000 (15:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2013 19:27:04 +0000 (12:27 -0700)
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>
drivers/net/ethernet/sun/sunhme.c

index b90d31145ac144189627f386133b0a62d10a9f54..c67e683a36e1e8edeac343e5b7fa56fa7547a926 100644 (file)
@@ -3250,8 +3250,6 @@ static int hme_sbus_remove(struct platform_device *op)
 
        free_netdev(net_dev);
 
-       dev_set_drvdata(&op->dev, NULL);
-
        return 0;
 }