Re: [PATCH 2/2] mlx5: remove unnecessary pci_set_drvdata()

2017-08-15 Thread David Miller
From: Zhu Yanjun Date: Tue, 15 Aug 2017 02:33:06 -0400 > 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 > Cc: Junxiao Bi > Signed-off-by: Zhu Yanjun Appli

[PATCH 2/2] mlx5: remove unnecessary pci_set_drvdata()

2017-08-14 Thread Zhu Yanjun
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 Cc: Junxiao Bi Signed-off-by: Zhu Yanjun --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 -- 1 file changed, 2