提交 d2c69807 编写于 作者: T Takashi Iwai

sound: OSS: Remove superfluous pci_set_dvdata(pci, NULL)

Only kahlua.c has it.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 20a24225
...@@ -178,7 +178,6 @@ static int probe_one(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -178,7 +178,6 @@ static int probe_one(struct pci_dev *pdev, const struct pci_device_id *ent)
return 0; return 0;
err_out_free: err_out_free:
pci_set_drvdata(pdev, NULL);
kfree(hw_config); kfree(hw_config);
return 1; return 1;
} }
...@@ -187,7 +186,6 @@ static void remove_one(struct pci_dev *pdev) ...@@ -187,7 +186,6 @@ static void remove_one(struct pci_dev *pdev)
{ {
struct address_info *hw_config = pci_get_drvdata(pdev); struct address_info *hw_config = pci_get_drvdata(pdev);
sb_dsp_unload(hw_config, 0); sb_dsp_unload(hw_config, 0);
pci_set_drvdata(pdev, NULL);
kfree(hw_config); kfree(hw_config);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册