Skip to content

Commit

Permalink
NULL noise: drivers/misc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Mar 30, 2008
1 parent 5fa1247 commit 5cf83b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/misc/fujitsu-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/misc/ibmasm/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/misc/lkdtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5cf83b9

Please sign in to comment.