Skip to contentSkip to conversation

fix compile time warning in acpi video.c

PATCH In review Yu Luming 1 participant 1 message Nov 2, 2006 ACPI

lore
Share & tools
lore

Yu Luming

author
#0 lore raw

PATCH 6/6 fix compile time warning in acpi video.c

fix compile time warning in acpi video.c

signed-off-by   [email protected]
---
[patch 6/6] fix compile time warning

 video.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/acpi/video.c +1 -3
index 4ad109f..4a2520b 100644
@@ -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;