aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSakari Ailus <[email protected]>2021-01-05 18:12:28 +0100
committerMauro Carvalho Chehab <[email protected]>2021-01-14 13:50:33 +0100
commitae56e038f72d8192ecb63233520c86c52c1d9ce6 (patch)
treee7fdfeae67f18ef49aca2f00a2a8b847f56f57d4 /tools/perf/scripts/python
parent9db0fcde36e3f3cc844be77de311d569212c545d (diff)
media: ccs: Make (non-)use of uninitialised variables more robust
GCC with W=2 level of kernel compiler warnings warns about the use of uninitialised variables in a few locations. While these uninitialised variables were not used in reality, this still produced compiler warnings. Address this by assigning the variables to NULL and checking for NULL in places it is not expected, returning -EIO in that case. This provides at least some sanity checking at runtime as the compiler appears unable to do that at compile time. Reported-by: Hans Verkuil <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions