diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-01-16 18:12:27 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-01-16 18:12:27 +0200 |
| commit | ae9c87774836124e6303b5a7321d9ea0ddf5ab85 (patch) | |
| tree | 5d142e2ba1576e2cbb6f8da020f4f0acfc9f12c4 /hid-tmff2.c | |
| parent | e2dd7bdc3a22ac8b8551db4154fa36fcc631b402 (diff) | |
| download | hid-tmff2-ae9c87774836124e6303b5a7321d9ea0ddf5ab85.tar.gz hid-tmff2-ae9c87774836124e6303b5a7321d9ea0ddf5ab85.zip | |
removed redundant check
+ Fixes warning with newer versions of gcc
Diffstat (limited to 'hid-tmff2.c')
| -rw-r--r-- | hid-tmff2.c | 2 |
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); |
