mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
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>
This commit is contained in:
parent
38dbfb59d1
commit
eb5ed9a322
1 changed files with 0 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue