]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] sound: rme32.c fix integer as NULL pointer warning
authorHarvey Harrison <harvey.harrison@gmail.com>
Thu, 28 Feb 2008 10:57:23 +0000 (11:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Apr 2008 10:00:16 +0000 (12:00 +0200)
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>
sound/pci/rme32.c

index df184aabce846e3eb1611b50e3c2e7d92891dbb1..e7ef3a1a25a89a4643b85c888435f22cb28c34a1 100644 (file)
@@ -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;