diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-01-30 11:56:56 (GMT) |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-05 00:05:24 (GMT) |
commit | eb5ed9a3221a30edc7b48b87af550dbcc0e82c80 (patch) | |
tree | 90b0f7cafcf33ab867c0e0114257d3f209bcc2e0 /drivers | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
download | linux-eb5ed9a3221a30edc7b48b87af550dbcc0e82c80.tar.xz |
ACPI / utils: remove a pointless NULL check
"element" can't be NULL because it is the address of a struct member.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/utils.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c index 0347a37..85e3b61 100644 --- a/drivers/acpi/utils.c +++ b/drivers/acpi/utils.c @@ -99,10 +99,6 @@ acpi_extract_package(union acpi_object *package, union acpi_object *element = &(package->package.elements[i]); - if (!element) { - return AE_BAD_DATA; - } - switch (element->type) { case ACPI_TYPE_INTEGER: |