summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/proc.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-01-30 12:55:15 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-05 01:06:21 +0100
commit085ca1175cdccc8e400f6d06cf64e209b46021a2 (patch)
tree4cf1d71b61174cc2c299163a494735d1843bf968 /drivers/acpi/proc.c
parentACPI / utils: remove a pointless NULL check (diff)
downloadlinux-085ca1175cdccc8e400f6d06cf64e209b46021a2.tar.xz
linux-085ca1175cdccc8e400f6d06cf64e209b46021a2.zip
ACPI / proc: remove unneeded NULL check
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>
Diffstat (limited to 'drivers/acpi/proc.c')
-rw-r--r--drivers/acpi/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/proc.c b/drivers/acpi/proc.c
index 50fe34ffe932..75c28eae8860 100644
--- 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));