aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-01-16 18:12:27 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2023-01-16 18:12:27 +0200
commitae9c87774836124e6303b5a7321d9ea0ddf5ab85 (patch)
tree5d142e2ba1576e2cbb6f8da020f4f0acfc9f12c4
parente2dd7bdc3a22ac8b8551db4154fa36fcc631b402 (diff)
downloadhid-tmff2-ae9c87774836124e6303b5a7321d9ea0ddf5ab85.tar.gz
hid-tmff2-ae9c87774836124e6303b5a7321d9ea0ddf5ab85.zip
removed redundant check
+ Fixes warning with newer versions of gcc
-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);