diff options
author | Jiri Kosina <jkosina@suse.cz> | 2012-06-18 17:08:08 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-06-18 17:08:30 +0200 |
commit | 1a8b294ce6b0cdab438175eed45ebb088bdd659a (patch) | |
tree | 11276ceea97f946329428398581e7642895b194f /lib/is_single_threaded.c | |
parent | 0a09d3ab3780aad9e64f1e45e56acf5b20bb82bf (diff) | |
download | op-kernel-dev-1a8b294ce6b0cdab438175eed45ebb088bdd659a.zip op-kernel-dev-1a8b294ce6b0cdab438175eed45ebb088bdd659a.tar.gz |
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 'lib/is_single_threaded.c')
0 files changed, 0 insertions, 0 deletions