diff options
author | Michał Kępień <kernel@kempniu.pl> | 2017-06-16 06:40:53 +0200 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-06-30 20:13:02 -0700 |
commit | 08df5d476fa817ff9c4a5a194a171e43f27a91c1 (patch) | |
tree | 190904d60e68f7d788b4b560797a996510be2e70 /drivers/cpuidle/cpuidle-clps711x.c | |
parent | 79e19ab5421b2d4f30901594aeee8180ee7a99ab (diff) |
platform/x86: fujitsu-laptop: remove redundant safety checks
Do not check whether the pointer passed to ACPI add callbacks is NULL as
it is earlier dereferenced anyway in the bus-level probe callback,
acpi_device_probe().
Do not check the value of acpi_disabled in fujitsu_init(), because it is
already done by acpi_bus_register_driver(), which is the first function
called by fujitsu_init().
Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'drivers/cpuidle/cpuidle-clps711x.c')
0 files changed, 0 insertions, 0 deletions