mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
HID: pidff: Remove unneeded else in pidff_find_special_field()
Fixes checkpatch.pl warning Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
3ab6f57dbe
commit
9c2f3ecd37
|
|
@ -1081,10 +1081,9 @@ static struct hid_field *pidff_find_special_field(struct hid_report *report,
|
|||
if (!enforce_min ||
|
||||
report->field[i]->logical_minimum == 1)
|
||||
return report->field[i];
|
||||
else {
|
||||
pr_err("logical_minimum is not 1 as it should be\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
pr_err("logical_minimum is not 1 as it should be\n");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user