提交 80b556f2 编写于 作者: A Alexey Dobriyan 提交者: Jaroslav Kysela

[ALSA] emu10k1x: simplify around pci_register_driver()

Report errors to modprobe as side effect.
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NJaroslav Kysela <perex@suse.cz>
上级 5e4968e2
......@@ -1626,12 +1626,7 @@ static struct pci_driver driver = {
// initialization of the module
static int __init alsa_card_emu10k1x_init(void)
{
int err;
if ((err = pci_register_driver(&driver)) > 0)
return err;
return 0;
return pci_register_driver(&driver);
}
// clean up the module
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册