Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NULL noise: drivers/misc

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Al Viro and committed by
Linus Torvalds
5cf83b9b 5fa1247a

+3 -3
+1 -1
drivers/misc/fujitsu-laptop.c
··· 231 231 232 232 if (!device || !acpi_driver_data(device)) 233 233 return -EINVAL; 234 - fujitsu->acpi_handle = 0; 234 + fujitsu->acpi_handle = NULL; 235 235 236 236 return 0; 237 237 }
+1 -1
drivers/misc/ibmasm/module.c
··· 106 106 sp->irq = pdev->irq; 107 107 sp->base_address = ioremap(pci_resource_start(pdev, 0), 108 108 pci_resource_len(pdev, 0)); 109 - if (sp->base_address == 0) { 109 + if (!sp->base_address) { 110 110 dev_err(sp->dev, "Failed to ioremap pci memory\n"); 111 111 result = -ENODEV; 112 112 goto error_ioremap;
+1 -1
drivers/misc/lkdtm.c
··· 197 197 { 198 198 int i; 199 199 200 - if (cpoint_name == INVALID || cpoint_type == NONE || 200 + if (cpoint_name == NULL || cpoint_type == NULL || 201 201 cpoint_count < 1 || recur_count < 1) 202 202 return -EINVAL; 203 203