diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-07-13 00:02:21 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-07-13 00:08:15 -0700 |
commit | fea2021c76a414b71204cc2aea623bb037fa913b (patch) | |
tree | 71803dcc10e402d8590c15a505923add8b5a0844 /drivers/input/mouse/lifebook.c | |
parent | c388b2c67e64d20cc0ad0d48d0e3e819d489bfed (diff) | |
download | op-kernel-dev-fea2021c76a414b71204cc2aea623bb037fa913b.zip op-kernel-dev-fea2021c76a414b71204cc2aea623bb037fa913b.tar.gz |
Input: lifebook - make dmi callback functions return 1
We only care about if there is a successful match from the table (or
no match at all), so let's make dmi_check_system return immediately
instead of iterating thorough the whole table.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mouse/lifebook.c')
-rw-r--r-- | drivers/input/mouse/lifebook.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/mouse/lifebook.c b/drivers/input/mouse/lifebook.c index c31ad11..83bcaba 100644 --- a/drivers/input/mouse/lifebook.c +++ b/drivers/input/mouse/lifebook.c @@ -33,7 +33,7 @@ static const char *desired_serio_phys; static int lifebook_limit_serio3(const struct dmi_system_id *d) { desired_serio_phys = "isa0060/serio3"; - return 0; + return 1; } static bool lifebook_use_6byte_proto; @@ -41,7 +41,7 @@ static bool lifebook_use_6byte_proto; static int lifebook_set_6byte_proto(const struct dmi_system_id *d) { lifebook_use_6byte_proto = true; - return 0; + return 1; } static const struct dmi_system_id __initconst lifebook_dmi_table[] = { |