Skip to content

Commit

Permalink
[ALSA] sound: rme32.c fix integer as NULL pointer warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
hharrison authored and tiwai committed Apr 24, 2008
1 parent e37273d commit 4db9e4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/pci/rme32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4db9e4f

Please sign in to comment.