OSDN Git Service

ACPI / proc: remove unneeded NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 30 Jan 2014 11:55:15 +0000 (14:55 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 5 Feb 2014 00:06:21 +0000 (01:06 +0100)
commit085ca1175cdccc8e400f6d06cf64e209b46021a2
tree4cf1d71b61174cc2c299163a494735d1843bf968
parenteb5ed9a3221a30edc7b48b87af550dbcc0e82c80
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>
drivers/acpi/proc.c