aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hid-tmff2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hid-tmff2.c b/hid-tmff2.c
index 24b663e..e726123 100644
--- a/hid-tmff2.c
+++ b/hid-tmff2.c
@@ -409,7 +409,7 @@ static int tmff2_play(struct input_dev *dev, int effect_id, int value)
return -ENODEV;
state = &tmff2->states[effect_id];
- if (&state->effect == 0)
+ if (!state)
return 0;
spin_lock(&tmff2->lock);