projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b663a79
)
sony-laptop: use NULL for pointer
author
Randy Dunlap
<
[email protected]
>
Mon, 16 Jul 2007 06:40:49 +0000
(23:40 -0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 16 Jul 2007 16:05:46 +0000
(09:05 -0700)
Use NULL instead of 0 for pointer:
drivers/misc/sony-laptop.c:1920:6: warning: Using plain integer as NULL pointer
Signed-off-by: Randy Dunlap <
[email protected]
>
Acked-by: Mattia Dongili <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/misc/sony-laptop.c
patch
|
blob
|
history
diff --git
a/drivers/misc/sony-laptop.c
b/drivers/misc/sony-laptop.c
index 8ee0321ef1c8f6226a62ad5a20680a8866b69773..9623eaf4f89fdf7cb479cb0ad0bc06bec915e206 100644
(file)
--- a/
drivers/misc/sony-laptop.c
+++ b/
drivers/misc/sony-laptop.c
@@
-1917,7
+1917,8
@@
end:
*/
static int sony_pic_disable(struct acpi_device *device)
{
- if (ACPI_FAILURE(acpi_evaluate_object(device->handle, "_DIS", 0, NULL)))
+ if (ACPI_FAILURE(acpi_evaluate_object(device->handle,
+ "_DIS", NULL, NULL)))
return -ENXIO;
dprintk("Device disabled\n");