Skip to content

Commit

Permalink
removed redundant check
Browse files Browse the repository at this point in the history
+ Fixes warning with newer versions of gcc
  • Loading branch information
Kimplul committed Jan 16, 2023
1 parent e2dd7bd commit ae9c877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hid-tmff2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae9c877

Please sign in to comment.