Skip to content

Commit 703e55a

Browse files
LawstorantJiri Kosina
authored andcommitted
HID: pidff: Move else if statements to follow closing braces
Fixes checkpatch.pl errors Signed-off-by: Tomasz Pakuła <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 61ea33d commit 703e55a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/hid/usbhid/hid-pidff.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -976,13 +976,11 @@ static int pidff_find_fields(struct pidff_usage *usage, const u8 *table,
976976
pr_debug("Delay field not found, but that's OK\n");
977977
pr_debug("Setting MISSING_DELAY quirk\n");
978978
return_value |= HID_PIDFF_QUIRK_MISSING_DELAY;
979-
}
980-
else if (!found && table[k] == pidff_set_condition[PID_PARAM_BLOCK_OFFSET]) {
979+
} else if (!found && table[k] == pidff_set_condition[PID_PARAM_BLOCK_OFFSET]) {
981980
pr_debug("PBO field not found, but that's OK\n");
982981
pr_debug("Setting MISSING_PBO quirk\n");
983982
return_value |= HID_PIDFF_QUIRK_MISSING_PBO;
984-
}
985-
else if (!found && strict) {
983+
} else if (!found && strict) {
986984
pr_debug("failed to locate %d\n", k);
987985
return -1;
988986
}

0 commit comments

Comments
 (0)