projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb5ed9a
)
ACPI / proc: remove unneeded NULL check
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 30 Jan 2014 11:55:15 +0000
(14:55 +0300)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Wed, 5 Feb 2014 00:06:21 +0000
(
01:06
+0100)
We already verified that "ldev" was non-NULL earlier and also we
dereference again without checking a three lines later.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/proc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/proc.c
b/drivers/acpi/proc.c
index 50fe34ffe932fbdc9b1e9166c551fb025754853e..75c28eae88604903ac518fc0fe4ebe83f2e2669e 100644
(file)
--- a/
drivers/acpi/proc.c
+++ b/
drivers/acpi/proc.c
@@
-60,7
+60,7
@@
acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset)
seq_printf(seq, "%c%-8s %s:%s\n",
dev->wakeup.flags.run_wake ? '*' : ' ',
(device_may_wakeup(&dev->dev) ||
-
(ldev && device_may_wakeup(ldev)
)) ?
+
device_may_wakeup(ldev
)) ?
"enabled" : "disabled",
ldev->bus ? ldev->bus->name :
"no-bus", dev_name(ldev));