projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38dbfb5
)
ACPI / utils: remove a pointless NULL check
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 30 Jan 2014 11:56:56 +0000
(14:56 +0300)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Wed, 5 Feb 2014 00:05:24 +0000
(
01:05
+0100)
"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>
drivers/acpi/utils.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/utils.c
b/drivers/acpi/utils.c
index 0347a37eb4389dcbd5c497ca6833e867618acbf5..85e3b612bdc0d49f7df07d056b0d9c14f8aca89e 100644
(file)
--- 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: