* [PATCH] sony-laptop: use NULL for pointer
@ 2007-06-06 4:43 Randy Dunlap
2007-06-06 6:57 ` Mattia Dongili
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2007-06-06 4:43 UTC (permalink / raw)
To: linux-acpi; +Cc: malattia, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
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 <randy.dunlap@oracle.com>
---
drivers/misc/sony-laptop.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- linux-2.6.22-rc3-git7.orig/drivers/misc/sony-laptop.c
+++ linux-2.6.22-rc3-git7/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");
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sony-laptop: use NULL for pointer
2007-06-06 4:43 [PATCH] sony-laptop: use NULL for pointer Randy Dunlap
@ 2007-06-06 6:57 ` Mattia Dongili
0 siblings, 0 replies; 2+ messages in thread
From: Mattia Dongili @ 2007-06-06 6:57 UTC (permalink / raw)
To: Randy Dunlap; +Cc: linux-acpi, akpm
On Tue, Jun 05, 2007 at 09:43:32PM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> 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 <randy.dunlap@oracle.com>
Acked-by: Mattia Dongili <malattia@linux.it>
--
mattia
:wq!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-06 6:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-06 4:43 [PATCH] sony-laptop: use NULL for pointer Randy Dunlap
2007-06-06 6:57 ` Mattia Dongili
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox