touchpad: Silence -Wmaybe-uninitialized compiler warning

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
Jonas Ådahl 2014-04-18 08:43:14 +02:00
parent 3f349026cf
commit 6834dd4628

View file

@ -152,7 +152,7 @@ tp_get_touch(struct tp_dispatch *tp, unsigned int slot)
static inline void
tp_begin_touch(struct tp_dispatch *tp, struct tp_touch *t)
{
struct tp_touch *tmp;
struct tp_touch *tmp = NULL;
if (t->state != TOUCH_UPDATE) {
tp_motion_history_reset(t);