Skip to content

Commit a0ea546

Browse files
LawstorantJiri Kosina
authored andcommitted
HID: pidff: Remove unneeded debug from pidff_clamp()
Fixes chechpatch.pl warning about missing blank line Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent 42a2bd6 commit a0ea546

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/hid/usbhid/hid-pidff.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ struct pidff_device {
210210
*/
211211
static s32 pidff_clamp(s32 i, struct hid_field *field)
212212
{
213-
s32 clamped = clamp(i, field->logical_minimum, field->logical_maximum);
214-
pr_debug("clamped from %d to %d", i, clamped);
215-
return clamped;
213+
return (s32)clamp(i, field->logical_minimum, field->logical_maximum);
216214
}
217215

218216
/*

0 commit comments

Comments
 (0)