NULL noise: drivers/misc
authorAl Viro <viro@ftp.linux.org.uk>
Sat, 29 Mar 2008 03:07:48 +0000 (03:07 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 30 Mar 2008 21:18:41 +0000 (14:18 -0700)
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>
drivers/misc/fujitsu-laptop.c
drivers/misc/ibmasm/module.c
drivers/misc/lkdtm.c

index 1cfd7f3f129400fd9d8d22d429689d6d29234d4a..e2e7c05a147b7382ea0516a3fa6702716081f38f 100644 (file)
@@ -231,7 +231,7 @@ static int acpi_fujitsu_remove(struct acpi_device *device, int type)
 
        if (!device || !acpi_driver_data(device))
                return -EINVAL;
-       fujitsu->acpi_handle = 0;
+       fujitsu->acpi_handle = NULL;
 
        return 0;
 }
index 4f9d4a9da983ddfaa58c3c2f99b57e5da9119e4e..b5f6add34b0b9b4a39b587c51e3dc7079722c50a 100644 (file)
@@ -106,7 +106,7 @@ static int __devinit ibmasm_init_one(struct pci_dev *pdev, const struct pci_devi
        sp->irq = pdev->irq;
        sp->base_address = ioremap(pci_resource_start(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");
                result =  -ENODEV;
                goto error_ioremap;
index c884730c5eafc55701486be80c13450f1f6a09e8..1bfe5d16963b9ece644b25c5bb81a411d2c1045f 100644 (file)
@@ -197,7 +197,7 @@ static int lkdtm_parse_commandline(void)
 {
        int i;
 
-       if (cpoint_name == INVALID || cpoint_type == NONE ||
+       if (cpoint_name == NULL || cpoint_type == NULL ||
                                        cpoint_count < 1 || recur_count < 1)
                return -EINVAL;