OSDN Git Service

mlx5: remove unnecessary pci_set_drvdata()
authorZhu Yanjun <yanjun.zhu@oracle.com>
Tue, 15 Aug 2017 06:33:06 +0000 (02:33 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Aug 2017 23:46:48 +0000 (16:46 -0700)
commit26d159482a0283568557eb606d7f869db7fa03d4
tree99c6db5a511dcff21ec0167d780ddf8a1cd5a2a7
parente084a8b89c173d7b37e886b277b6d3e05669259a
mlx5: remove unnecessary pci_set_drvdata()

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

Cc: Joe Jin <joe.jin@oracle.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/main.c