]> git.baikalelectronics.ru Git - kernel.git/commit
fujitsu-laptop: remove unnecessary input_free_device calls
authorAxel Lin <axel.lin@gmail.com>
Tue, 20 Jul 2010 22:19:34 +0000 (15:19 -0700)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:48:56 +0000 (09:48 -0400)
commita9a10e8db677970974d6a89a520e57e9c5b940ad
treed60bf26b3e07002bce14b128f6fdbed0b24394be
parent2e7f32ada89a9818f419fefdbb1b7676b0a0511e
fujitsu-laptop: remove unnecessary input_free_device calls

input_free_device() should only be used if input_register_device() was not
called yet or if it failed.  This patch removes unnecessary
input_free_device calls.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Jonathan Woithe <jwoithe@physics.adelaide.edu.au>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Cc: Matthew Garrett <mjg@redhat.com>a
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/fujitsu-laptop.c