aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/hid/hid-input.c
diff options
context:
space:
mode:
authorAaron Ma <aaron.ma@canonical.com>2018-02-03 23:57:15 +0800
committerJiri Kosina <jkosina@suse.cz>2018-02-16 13:30:56 +0100
commit3064a03b94e60388f0955fcc29f3e8a978d28f75 (patch)
treeaa533760ffce91785050d48be73e287043dd47f9 /drivers/hid/hid-input.c
parentHID: core: Fix size as type u32 (diff)
downloadwireguard-linux-3064a03b94e60388f0955fcc29f3e8a978d28f75.tar.xz
wireguard-linux-3064a03b94e60388f0955fcc29f3e8a978d28f75.zip
HID: Fix hid_report_len usage
Follow the change of return type u32 of hid_report_len, fix all the types of variables those get the return value of hid_report_len to u32, and all other code already uses u32. Cc: stable@vger.kernel.org Signed-off-by: Aaron Ma <aaron.ma@canonical.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r--drivers/hid/hid-input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 04d01b57d94c..d86398755b0d 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -1368,7 +1368,8 @@ static void hidinput_led_worker(struct work_struct *work)
led_work);
struct hid_field *field;
struct hid_report *report;
- int len, ret;
+ int ret;
+ u32 len;
__u8 *buf;
field = hidinput_get_led_field(hid);