]> git.baikalelectronics.ru Git - kernel.git/commit
net: emac: remove unnecessary dev_set_drvdata()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 15 Sep 2016 02:25:52 +0000 (02:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2016 08:25:50 +0000 (04:25 -0400)
commit7d83295806d6692ba860ef65f4b297e50e983c65
tree2a76e9f5e59c095a977921e61f92558f7b5f46eb
parent49c9ef30b3aae91fd50ab4659397517df9994e2a
net: emac: remove unnecessary dev_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac.c