Commit 5cf83b9b authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

NULL noise: drivers/misc

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Acked-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5fa1247a
...@@ -231,7 +231,7 @@ static int acpi_fujitsu_remove(struct acpi_device *device, int type) ...@@ -231,7 +231,7 @@ static int acpi_fujitsu_remove(struct acpi_device *device, int type)
if (!device || !acpi_driver_data(device)) if (!device || !acpi_driver_data(device))
return -EINVAL; return -EINVAL;
fujitsu->acpi_handle = 0; fujitsu->acpi_handle = NULL;
return 0; return 0;
} }
......
...@@ -106,7 +106,7 @@ static int __devinit ibmasm_init_one(struct pci_dev *pdev, const struct pci_devi ...@@ -106,7 +106,7 @@ static int __devinit ibmasm_init_one(struct pci_dev *pdev, const struct pci_devi
sp->irq = pdev->irq; sp->irq = pdev->irq;
sp->base_address = ioremap(pci_resource_start(pdev, 0), sp->base_address = ioremap(pci_resource_start(pdev, 0),
pci_resource_len(pdev, 0)); pci_resource_len(pdev, 0));
if (sp->base_address == 0) { if (!sp->base_address) {
dev_err(sp->dev, "Failed to ioremap pci memory\n"); dev_err(sp->dev, "Failed to ioremap pci memory\n");
result = -ENODEV; result = -ENODEV;
goto error_ioremap; goto error_ioremap;
......
...@@ -197,7 +197,7 @@ static int lkdtm_parse_commandline(void) ...@@ -197,7 +197,7 @@ static int lkdtm_parse_commandline(void)
{ {
int i; int i;
if (cpoint_name == INVALID || cpoint_type == NONE || if (cpoint_name == NULL || cpoint_type == NULL ||
cpoint_count < 1 || recur_count < 1) cpoint_count < 1 || recur_count < 1)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment