From: Tomasz Pakuła Date: Sat, 24 May 2025 17:47:21 +0000 (+0200) Subject: HID: pidff: Remove unneeded else in pidff_find_special_field() X-Git-Tag: io_uring-6.17-20250815~80^2~2^2~3 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=9c2f3ecd37ddcd714e4a476a5469d9b6663992ab;p=linux-block.git HID: pidff: Remove unneeded else in pidff_find_special_field() Fixes checkpatch.pl warning Signed-off-by: Tomasz Pakuła Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/usbhid/hid-pidff.c b/drivers/hid/usbhid/hid-pidff.c index 88eb832265a4..6f25490ce464 100644 --- a/drivers/hid/usbhid/hid-pidff.c +++ b/drivers/hid/usbhid/hid-pidff.c @@ -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;