Skip to content

Commit 9c2f3ec

Browse files
LawstorantJiri Kosina
authored andcommitted
HID: pidff: Remove unneeded else in pidff_find_special_field()
Fixes checkpatch.pl warning Signed-off-by: Tomasz Pakuła <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 3ab6f57 commit 9c2f3ec

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/hid/usbhid/hid-pidff.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,10 +1081,9 @@ static struct hid_field *pidff_find_special_field(struct hid_report *report,
10811081
if (!enforce_min ||
10821082
report->field[i]->logical_minimum == 1)
10831083
return report->field[i];
1084-
else {
1085-
pr_err("logical_minimum is not 1 as it should be\n");
1086-
return NULL;
1087-
}
1084+
1085+
pr_err("logical_minimum is not 1 as it should be\n");
1086+
return NULL;
10881087
}
10891088
}
10901089
return NULL;

0 commit comments

Comments
 (0)