linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 6/6] fix compile time warning in acpi video.c
@ 2006-11-02 13:31 Yu Luming
  0 siblings, 0 replies; 2+ messages in thread
From: Yu Luming @ 2006-11-02 13:31 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Pavel Machek, len.brown, Matt Domsch, Alessandro Guido,
	linux-kernel, linux-acpi, jengelh, gelma, ismail, Richard Hughes

fix compile time warning in acpi video.c

signed-off-by   Luming.yu@gmail.com
---
[patch 6/6] fix compile time warning
 video.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 4ad109f..4a2520b 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -560,13 +560,11 @@ static void acpi_pci_data_handler(acpi_h
 
 static struct acpi_pci_data * acpi_pci_get (struct acpi_device *device)
 {
-	int result = 0;
 	acpi_status status = AE_OK;
 	struct acpi_pci_data *data = NULL;
 	struct acpi_pci_data *pdata = NULL;
 	char *pathname = NULL;
 	struct acpi_buffer buffer = { 0, NULL };
-	acpi_handle handle = NULL;
 	struct pci_dev *dev;
 	struct pci_bus *bus;
 
@@ -576,7 +574,7 @@ static struct acpi_pci_data * acpi_pci_g
 
 	pathname = kmalloc(ACPI_PATHNAME_MAX, GFP_KERNEL);
 	if (!pathname)
-		return -ENOMEM;
+		return NULL;
 	memset(pathname, 0, ACPI_PATHNAME_MAX);
 	buffer.length = ACPI_PATHNAME_MAX;
 	buffer.pointer = pathname;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [patch 6/6] fix compile time warning in acpi video.c
@ 2006-11-02 13:32 Yu Luming
  0 siblings, 0 replies; 2+ messages in thread
From: Yu Luming @ 2006-11-02 13:32 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Pavel Machek, len.brown, Matt Domsch, Alessandro Guido,
	linux-kernel, linux-acpi, jengelh, gelma, ismail, Richard Hughes

fix compile time warning in acpi video.c

signed-off-by   Luming.yu@gmail.com
---
[patch 6/6] fix compile time warning
 video.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 4ad109f..4a2520b 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -560,13 +560,11 @@ static void acpi_pci_data_handler(acpi_h
 
 static struct acpi_pci_data * acpi_pci_get (struct acpi_device *device)
 {
-	int result = 0;
 	acpi_status status = AE_OK;
 	struct acpi_pci_data *data = NULL;
 	struct acpi_pci_data *pdata = NULL;
 	char *pathname = NULL;
 	struct acpi_buffer buffer = { 0, NULL };
-	acpi_handle handle = NULL;
 	struct pci_dev *dev;
 	struct pci_bus *bus;
 
@@ -576,7 +574,7 @@ static struct acpi_pci_data * acpi_pci_g
 
 	pathname = kmalloc(ACPI_PATHNAME_MAX, GFP_KERNEL);
 	if (!pathname)
-		return -ENOMEM;
+		return NULL;
 	memset(pathname, 0, ACPI_PATHNAME_MAX);
 	buffer.length = ACPI_PATHNAME_MAX;
 	buffer.pointer = pathname;
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-02 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-02 13:31 [patch 6/6] fix compile time warning in acpi video.c Yu Luming
  -- strict thread matches above, loose matches on Subject: below --
2006-11-02 13:32 Yu Luming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).