git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7e92ec
)
ACPI / event: remove unneeded NULL pointer check
author
Mathias Krause
<minipli@googlemail.com>
Tue, 5 Nov 2013 20:25:32 +0000
(21:25 +0100)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Thu, 7 Nov 2013 13:10:41 +0000
(14:10 +0100)
nla_data() cannot return NULL as it simply adds NLA_HDRLEN to the
passed pointer. The NULL pointer check is therefore superfluous.
Remove it.
Found by smatch:
drivers/acpi/event.c:130 acpi_bus_generate_netlink_event() warn: can
'event' even be NULL?
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
No differences found