aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorVaibhav Agarwal <[email protected]>2016-09-24 23:06:26 +0530
committerGreg Kroah-Hartman <[email protected]>2016-09-27 12:59:51 +0200
commit7224a2a50a29871b2ae04cac731ea199adedbe68 (patch)
tree69721edc1ee044dc345626e37d0b3458d56dfc65 /tools/perf/scripts/python/bin
parentdc258c15ea121414277156511c8cca944443201e (diff)
greybus: audio: fix uninitialized variable errors found by cppcheck
Currently, if info is null, the dev_err message is dereferencing an uninitialized module pointer. Instead, it should use codec->dev pointer in dev_err call and better align with other err msg in this function. Also, ret variable might be used uninitialized in a specific case. Avoid using it this way. Found using static analysis with cppcheck: Checking drivers/staging/greybus/audio_topology.c... [drivers/staging/greybus/audio_topology.c:175]: (error) Uninitialized variable: module [drivers/staging/greybus/audio_topology.c:495]: (error) Uninitialized variable: ret Reported-by: Colin Ian King <[email protected]> Signed-off-by: Vaibhav Agarwal <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions