Skip to content
Commit 1a8b294c authored by Jiri Kosina's avatar Jiri Kosina
Browse files

HID: uhid: silence gcc warning



gcc is giving me:

drivers/hid/uhid.c: In function ‘uhid_hid_get_raw’:
drivers/hid/uhid.c:157: warning: ‘len’ may be used uninitialized in this function

which is clearly bogus, as

- when used as memcpy() argument, it's initialized properly
- the code is structured in a way that either 'ret' or 'len'
  is always initialized, so the return statement always has
  an initialized value.

Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 0a09d3ab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment