diff options
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 02b30ae6a68e..57ae1e5cde0a 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -568,6 +568,7 @@ void acpi_os_derive_pci_id(acpi_handle rhandle, /* upper bound */ | |||
568 | static void acpi_os_execute_deferred(struct work_struct *work) | 568 | static void acpi_os_execute_deferred(struct work_struct *work) |
569 | { | 569 | { |
570 | struct acpi_os_dpc *dpc = container_of(work, struct acpi_os_dpc, work); | 570 | struct acpi_os_dpc *dpc = container_of(work, struct acpi_os_dpc, work); |
571 | |||
571 | if (!dpc) { | 572 | if (!dpc) { |
572 | printk(KERN_ERR PREFIX "Invalid (NULL) context\n"); | 573 | printk(KERN_ERR PREFIX "Invalid (NULL) context\n"); |
573 | return; | 574 | return; |
@@ -1031,7 +1032,7 @@ acpi_status | |||
1031 | acpi_os_create_cache(char *name, u16 size, u16 depth, acpi_cache_t ** cache) | 1032 | acpi_os_create_cache(char *name, u16 size, u16 depth, acpi_cache_t ** cache) |
1032 | { | 1033 | { |
1033 | *cache = kmem_cache_create(name, size, 0, 0, NULL, NULL); | 1034 | *cache = kmem_cache_create(name, size, 0, 0, NULL, NULL); |
1034 | if (cache == NULL) | 1035 | if (*cache == NULL) |
1035 | return AE_ERROR; | 1036 | return AE_ERROR; |
1036 | else | 1037 | else |
1037 | return AE_OK; | 1038 | return AE_OK; |
@@ -1051,7 +1052,7 @@ acpi_os_create_cache(char *name, u16 size, u16 depth, acpi_cache_t ** cache) | |||
1051 | 1052 | ||
1052 | acpi_status acpi_os_purge_cache(acpi_cache_t * cache) | 1053 | acpi_status acpi_os_purge_cache(acpi_cache_t * cache) |
1053 | { | 1054 | { |
1054 | (void)kmem_cache_shrink(cache); | 1055 | kmem_cache_shrink(cache); |
1055 | return (AE_OK); | 1056 | return (AE_OK); |
1056 | } | 1057 | } |
1057 | 1058 | ||