]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/container.c
[PATCH] Input: convert hdaps to dynamic input_dev allocation.
[linux-2.6-omap-h63xx.git] / drivers / acpi / container.c
index 10dd695a1dd93e06d43497b5b4c49ce8680a7cac..27ec12c1fab084c2ea1bba43c24be5e00c636e71 100644 (file)
@@ -118,11 +118,9 @@ static int acpi_container_remove(struct acpi_device *device, int type)
 {
        acpi_status status = AE_OK;
        struct acpi_container *pc = NULL;
-       pc = (struct acpi_container *)acpi_driver_data(device);
-
-       if (pc)
-               kfree(pc);
 
+       pc = (struct acpi_container *)acpi_driver_data(device);
+       kfree(pc);
        return status;
 }