mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
x86: fix sparse warning in kernel/scx200_32.c
arch/x86/kernel/scx200_32.c:68:72: warning: Using plain integer as NULL pointer Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
1fd6a53ddc
commit
706b7e1573
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ static int __devinit scx200_probe(struct pci_dev *pdev, const struct pci_device_
|
|||
base = pci_resource_start(pdev, 0);
|
||||
printk(KERN_INFO NAME ": GPIO base 0x%x\n", base);
|
||||
|
||||
if (request_region(base, SCx200_GPIO_SIZE, "NatSemi SCx200 GPIO") == 0) {
|
||||
if (!request_region(base, SCx200_GPIO_SIZE, "NatSemi SCx200 GPIO")) {
|
||||
printk(KERN_ERR NAME ": can't allocate I/O for GPIOs\n");
|
||||
return -EBUSY;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue