]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: remove unnecessary pci_set_drvdata()
authorZhu Yanjun <yanjun.zhu@oracle.com>
Tue, 15 Aug 2017 06:33:05 +0000 (02:33 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Aug 2017 23:46:48 +0000 (16:46 -0700)
commitf18fb127870d03298899f6572712b56b14e95d7e
tree67b52cc847fbaa06a446d7154495bcaaf5bb5568
parent9276b179ca3a4d7d11276bfe2be64470709952ba
mlx4: 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/mlx4/main.c