summaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet
diff options
context:
space:
mode:
authorPing Cheng <pinglinux@gmail.com>2011-07-07 03:05:43 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-07-07 06:24:35 +0200
commit84460014505685ab234fa8e1a45dffd32f3a46a7 (patch)
tree41955af29bab07f8f3d4b94927f5d29d02210c72 /drivers/input/tablet
parentInput: wacom - update Graphire4 and old Bamboo tablet buttons (diff)
downloadlinux-84460014505685ab234fa8e1a45dffd32f3a46a7.tar.xz
linux-84460014505685ab234fa8e1a45dffd32f3a46a7.zip
Input: wacom - cleanup a return value for the old Bamboo
The old code may call input_sync() without sending any other events. While it will be suppressed by the input core not calling it at all is still cheaper. Signed-off-by: Ping Cheng <pingc@wacom.com> Reviewed-by: Chris Bagwell <chris@cnpbagwell.com> Reviewed-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/tablet')
-rw-r--r--drivers/input/tablet/wacom_wac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c
index 19554a430170..03ebcc8b24b5 100644
--- a/drivers/input/tablet/wacom_wac.c
+++ b/drivers/input/tablet/wacom_wac.c
@@ -300,8 +300,8 @@ static int wacom_graphire_irq(struct wacom_wac *wacom)
wacom->id[1] = 0;
input_report_abs(input, ABS_MISC, wacom->id[1]);
input_event(input, EV_MSC, MSC_SERIAL, 0xf0);
+ retval = 1;
}
- retval = 1;
break;
}
exit: