summaryrefslogtreecommitdiff
path: root/drivers/acpi
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-01-30 14:56:56 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-05 01:05:24 +0100
commiteb5ed9a3221a30edc7b48b87af550dbcc0e82c80 (patch)
tree90b0f7cafcf33ab867c0e0114257d3f209bcc2e0 /drivers/acpi
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
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/acpi')
-rw-r--r--drivers/acpi/utils.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c
index 0347a37eb438..85e3b612bdc0 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: