Skip to content

Commit bed72bd

Browse files
LawstorantJiri Kosina
authored andcommitted
HID: pidff: Rework pidff_set_time() to fix warnings
Fixes blank line warning from checkpatch.pl script Signed-off-by: Tomasz Pakuła <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent a0ea546 commit bed72bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hid/usbhid/hid-pidff.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ static void pidff_set_signed(struct pidff_usage *usage, s16 value)
273273

274274
static void pidff_set_time(struct pidff_usage *usage, u16 time)
275275
{
276-
u32 modified_time = pidff_rescale_time(time, usage->field);
277-
usage->value[0] = pidff_clamp(modified_time, usage->field);
276+
usage->value[0] = pidff_clamp(
277+
pidff_rescale_time(time, usage->field), usage->field);
278278
}
279279

280280
static void pidff_set_duration(struct pidff_usage *usage, u16 duration)

0 commit comments

Comments
 (0)