Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tomasz Pakuła and committed by
Jiri Kosina
703e55aa 61ea33de

+2 -4
+2 -4
drivers/hid/usbhid/hid-pidff.c
··· 976 976 pr_debug("Delay field not found, but that's OK\n"); 977 977 pr_debug("Setting MISSING_DELAY quirk\n"); 978 978 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]) { 981 980 pr_debug("PBO field not found, but that's OK\n"); 982 981 pr_debug("Setting MISSING_PBO quirk\n"); 983 982 return_value |= HID_PIDFF_QUIRK_MISSING_PBO; 984 - } 985 - else if (!found && strict) { 983 + } else if (!found && strict) { 986 984 pr_debug("failed to locate %d\n", k); 987 985 return -1; 988 986 }