diff options
author | Jiri Kosina <jkosina@suse.cz> | 2012-06-18 17:08:08 +0200 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2012-09-18 13:53:21 +0530 |
commit | cb3b4e83094ee4418857d727d874319f886f7442 (patch) | |
tree | 3d104fc10234854710767afff846f85d0c936b55 /drivers/input | |
parent | 09afc24f96f4d6a73f816a9653345088c7aaf576 (diff) |
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: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions