aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-12-19 15:56:13 -0500
committerLen Brown <len.brown@intel.com>2006-12-20 01:27:57 -0500
commita6fdbf90b94fa4e2f5f7cbb526c71160b6c561c8 (patch)
tree08a5e2971864b620b6e115f4913d88a2b67fd78e /drivers/acpi
parent83822fc9e6ad2e0f3799174f7c6ad3aa285b9488 (diff)
ACPI: fix NULL check in drivers/acpi/osl.c
Spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/osl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index c84286cbbe25..e10679ce1e0e 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -1032,7 +1032,7 @@ acpi_status
1032acpi_os_create_cache(char *name, u16 size, u16 depth, acpi_cache_t ** cache) 1032acpi_os_create_cache(char *name, u16 size, u16 depth, acpi_cache_t ** cache)
1033{ 1033{
1034 *cache = kmem_cache_create(name, size, 0, 0, NULL, NULL); 1034 *cache = kmem_cache_create(name, size, 0, 0, NULL, NULL);
1035 if (cache == NULL) 1035 if (*cache == NULL)
1036 return AE_ERROR; 1036 return AE_ERROR;
1037 else 1037 else
1038 return AE_OK; 1038 return AE_OK;