Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Carpenter and committed by
Rafael J. Wysocki
eb5ed9a3 38dbfb59

-4
-4
drivers/acpi/utils.c
··· 99 99 100 100 union acpi_object *element = &(package->package.elements[i]); 101 101 102 - if (!element) { 103 - return AE_BAD_DATA; 104 - } 105 - 106 102 switch (element->type) { 107 103 108 104 case ACPI_TYPE_INTEGER: