Skip to content

Commit 1010dcc

Browse files
Jingoo Handavem330
authored andcommitted
net: wan: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d06 (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 785ec30 commit 1010dcc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/wan/ixp4xx_hss.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,6 @@ static int hss_remove_one(struct platform_device *pdev)
13841384
unregister_hdlc_device(port->netdev);
13851385
free_netdev(port->netdev);
13861386
npe_release(port->npe);
1387-
platform_set_drvdata(pdev, NULL);
13881387
kfree(port);
13891388
return 0;
13901389
}

0 commit comments

Comments
 (0)