提交 44977b71 编写于 作者: H Harvey Harrison 提交者: Takashi Iwai

[ALSA] sound: rme96.c fix integer as NULL pointer warning

kernel style does assignment outside of if() block
sound/pci/rme96.c:1562:71: warning: Using plain integer as NULL pointer
Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 4db9e4f2
...@@ -1559,7 +1559,8 @@ snd_rme96_create(struct rme96 *rme96) ...@@ -1559,7 +1559,8 @@ snd_rme96_create(struct rme96 *rme96)
return err; return err;
rme96->port = pci_resource_start(rme96->pci, 0); rme96->port = pci_resource_start(rme96->pci, 0);
if ((rme96->iobase = ioremap_nocache(rme96->port, RME96_IO_SIZE)) == 0) { rme96->iobase = ioremap_nocache(rme96->port, RME96_IO_SIZE);
if (!rme96->iobase) {
snd_printk(KERN_ERR "unable to remap memory region 0x%lx-0x%lx\n", rme96->port, rme96->port + RME96_IO_SIZE - 1); snd_printk(KERN_ERR "unable to remap memory region 0x%lx-0x%lx\n", rme96->port, rme96->port + RME96_IO_SIZE - 1);
return -ENOMEM; return -ENOMEM;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册