diff mbox series

[v2,08/11] HID: pidff: Remove unneeded else in pidff_find_special_field()

Message ID 20250524174724.1379440-9-tomasz.pakula.oficjalny@gmail.com
State New
Headers show
Series HID: pidff: checkpatch fixes | expand

Commit Message

Tomasz Pakuła May 24, 2025, 5:47 p.m. UTC
Fixes checkpatch.pl warning

Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com>
---
 drivers/hid/usbhid/hid-pidff.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

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;