From ae9c87774836124e6303b5a7321d9ea0ddf5ab85 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 16 Jan 2023 18:12:27 +0200 Subject: [PATCH] removed redundant check + Fixes warning with newer versions of gcc --- hid-tmff2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);