diff options
author | Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com> | 2025-05-24 19:47:24 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2025-06-10 21:28:27 +0200 |
commit | 703e55aacbf73da570cc276e69ec6cbe16198376 (patch) | |
tree | 7d4765b298ca16a47cf0cbba2476d9de22a3bf63 | |
parent | 61ea33ded9327a07d9ef85a6933cb6316e2f185f (diff) |
HID: pidff: Move else if statements to follow closing braces
Fixes checkpatch.pl errors
Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
-rw-r--r-- | drivers/hid/usbhid/hid-pidff.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hid/usbhid/hid-pidff.c b/drivers/hid/usbhid/hid-pidff.c index a07c5efddbe4..614a20b62023 100644 --- a/drivers/hid/usbhid/hid-pidff.c +++ b/drivers/hid/usbhid/hid-pidff.c @@ -976,13 +976,11 @@ static int pidff_find_fields(struct pidff_usage *usage, const u8 *table, pr_debug("Delay field not found, but that's OK\n"); pr_debug("Setting MISSING_DELAY quirk\n"); return_value |= HID_PIDFF_QUIRK_MISSING_DELAY; - } - else if (!found && table[k] == pidff_set_condition[PID_PARAM_BLOCK_OFFSET]) { + } else if (!found && table[k] == pidff_set_condition[PID_PARAM_BLOCK_OFFSET]) { pr_debug("PBO field not found, but that's OK\n"); pr_debug("Setting MISSING_PBO quirk\n"); return_value |= HID_PIDFF_QUIRK_MISSING_PBO; - } - else if (!found && strict) { + } else if (!found && strict) { pr_debug("failed to locate %d\n", k); return -1; } |