Re: [PATCH net-next] net: hns3: remove unnecessary pci_set_drvdata() and devm_kfree()

2018-03-29 Thread David Miller
From: Wei Yongjun Date: Wed, 28 Mar 2018 12:51:01 + > The devm_kfree function allocates memory that is released when a devm_kfree doesn't allocate memory, it frees it. Your commit log message is confusing at best. I know what you're trying to say, but a lot of the

[PATCH net-next] net: hns3: remove unnecessary pci_set_drvdata() and devm_kfree()

2018-03-28 Thread Wei Yongjun
The devm_kfree function allocates memory that is released when a driver detaches. Also the driver core clears the driver data to NULL after device release. So remove the unnecessary pci_set_drvdata() and devm_kfree(). Signed-off-by: Wei Yongjun ---