Skip to content

Commit f49fbb6

Browse files
Lawstorantgregkh
authored andcommitted
HID: pidff: Rework pidff_set_time() to fix warnings
[ Upstream commit bed72bd ] Fixes blank line warning from checkpatch.pl script Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.com> Stable-dep-of: 67bb107 ("HID: pidff: fix OOB write when hid->inputs is empty") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9b01f5a commit f49fbb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/hid/usbhid/hid-pidff.c

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

340340
static void pidff_set_time(struct pidff_usage *usage, u16 time)
341341
{
342-
u32 modified_time = pidff_rescale_time(time, usage->field);
343-
usage->value[0] = pidff_clamp(modified_time, usage->field);
342+
usage->value[0] = pidff_clamp(
343+
pidff_rescale_time(time, usage->field), usage->field);
344344
}
345345

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

0 commit comments

Comments
 (0)