提交 27e81107 编写于 作者: S Sachin Kamat 提交者: Greg Kroah-Hartman

staging: vt6655: Remove redundant pci_set_drvdata

Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 fddd143f
......@@ -1153,10 +1153,6 @@ static void device_free_info(PSDevice pDevice) {
pci_release_regions(pDevice->pcid);
if (dev)
free_netdev(dev);
if (pDevice->pcid) {
pci_set_drvdata(pDevice->pcid, NULL);
}
}
static bool device_init_rings(PSDevice pDevice) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册