Skip to content

Commit

Permalink
ACPI / utils: remove a pointless NULL check
Browse files Browse the repository at this point in the history
"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>
  • Loading branch information
Dan Carpenter authored and Rafael J. Wysocki committed Feb 5, 2014
1 parent 38dbfb5 commit eb5ed9a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/acpi/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eb5ed9a

Please sign in to comment.