aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorSimon Que <[email protected]>2013-01-17 13:02:52 -0800
committerJiri Kosina <[email protected]>2013-01-18 10:59:24 +0100
commitb77a989acca3fb4d09c2d8c3749499c663f5ab9f (patch)
tree17f7716e21657fd59523cbb528dfdcf4d42630a6 /lib/debugobjects.c
parentaaca9cc0165f06a037a1e07770f6b379ff496288 (diff)
HID: Fix uninitialized variable "size" in hid-wiimote-debug
This variable is initialized conditionally, based on whether a wiimote call succeeds. However, the logic is not obvious to the compiler so it throws a warning. Eliminate the warning by initializing "size" to 0. The warning is: files/drivers/hid/hid-wiimote-debug.c:69:18: warning: 'size' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Simon Que <[email protected]> Signed-off-by: David Herrmann <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions