diff options
| author | Ted Chen <[email protected]> | 2016-10-30 23:29:20 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-11-07 11:22:47 +0100 |
| commit | c9b32721225b103f3e3fc406600aaaaddc2e8053 (patch) | |
| tree | e1c62ba41e9dc8975a8d7ecdc8185f8788ec17dc /tools/perf/scripts/python | |
| parent | 48157007c8d4374949ed9d3a95e6bf0b8559979e (diff) | |
staging: comedi: ni_tio: fix warnings of uninitialized variables
Fix the following warnings by initializing these variables
to zero and add error check to return early when the check
returns an error.
drivers/staging/comedi/drivers/ni_tio.c: In function ‘ni_tio_set_sync_mode’:
drivers/staging/comedi/drivers/ni_tio.c:492:28: warning: ‘ps’ may be used uninitialized in this function [-Wuninitialized]
drivers/staging/comedi/drivers/ni_tio.c: In function ‘ni_tio_insn_config’:
drivers/staging/comedi/drivers/ni_tio.c:820:2: warning: ‘temp64’ may be used uninitialized in this function [-Wuninitialized]
drivers/staging/comedi/drivers/ni_tio.c:811:6: note: ‘temp64’ was declared her
Signed-off-by: Ted Chen <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions