diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-28 11:57:23 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 12:00:16 +0200 |
commit | 4db9e4f2b5278338ff9487eefdc8e32109aa0552 (patch) | |
tree | 50d25fff3c06d048dc95decf7069641173b680df /sound/pci/rme32.c | |
parent | e37273d3484e241063fefb2611a0c93eb0d9ddbd (diff) | |
download | op-kernel-dev-4db9e4f2b5278338ff9487eefdc8e32109aa0552.zip op-kernel-dev-4db9e4f2b5278338ff9487eefdc8e32109aa0552.tar.gz |
[ALSA] sound: rme32.c fix integer as NULL pointer warning
kernel style does assignment outside of if() statements.
sound/pci/rme32.c:1353:71: warning: Using plain integer as NULL pointer
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/rme32.c')
-rw-r--r-- | sound/pci/rme32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c index df184aa..e7ef3a1 100644 --- a/sound/pci/rme32.c +++ b/sound/pci/rme32.c @@ -1350,7 +1350,8 @@ static int __devinit snd_rme32_create(struct rme32 * rme32) return err; rme32->port = pci_resource_start(rme32->pci, 0); - if ((rme32->iobase = ioremap_nocache(rme32->port, RME32_IO_SIZE)) == 0) { + rme32->iobase = ioremap_nocache(rme32->port, RME32_IO_SIZE); + if (!rme32->iobase) { snd_printk(KERN_ERR "unable to remap memory region 0x%lx-0x%lx\n", rme32->port, rme32->port + RME32_IO_SIZE - 1); return -ENOMEM; |