Skip to content

Commit 3f7fd8c

Browse files
LawstorantJiri Kosina
authored andcommitted
HID: pidff: Move trailing statements in pidff_rescale_signed()
Adds newline before trailing if statements. Fixes checkpatch.pl errors Signed-off-by: Tomasz Pakuła <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 9c2f3ec commit 3f7fd8c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/hid/usbhid/hid-pidff.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,10 @@ static int pidff_rescale(int i, int max, struct hid_field *field)
227227
*/
228228
static int pidff_rescale_signed(int i, struct hid_field *field)
229229
{
230-
if (i > 0) return i * field->logical_maximum / S16_MAX;
231-
if (i < 0) return i * field->logical_minimum / S16_MIN;
230+
if (i > 0)
231+
return i * field->logical_maximum / S16_MAX;
232+
if (i < 0)
233+
return i * field->logical_minimum / S16_MIN;
232234
return 0;
233235
}
234236

0 commit comments

Comments
 (0)