From: Harvey Harrison Date: Thu, 28 Feb 2008 10:57:47 +0000 (+0100) Subject: [ALSA] sound: rme96.c fix integer as NULL pointer warning X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=44977b719f7425ddb1cb67d647a4f588a9718163;p=linux-beck.git [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: Harvey Harrison Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c index fb0a4ee8bc02..3fdd488d0975 100644 --- a/sound/pci/rme96.c +++ b/sound/pci/rme96.c @@ -1559,7 +1559,8 @@ snd_rme96_create(struct rme96 *rme96) return err; 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); return -ENOMEM; }