summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-25 18:54:04 +0300
committerStephen Boyd <sboyd@codeaurora.org>2016-01-30 04:20:08 +0300
commit9849fadfc07eeb2a3699f1ccb7b61f59d2c3c6b8 (patch)
tree1e3295181d2f54596913719f097b848340fc05bd /tools/perf/scripts/python/call-graph-from-postgresql.py
parent3d6f1c7212d0823cbc056b1c184c7fe0cfef553a (diff)
downloadlinux-9849fadfc07eeb2a3699f1ccb7b61f59d2c3c6b8.tar.xz
clk: st: avoid uninitialized variable use
My previous patch fixed some warnings about printing a couple of variables that are always uninitialized in quadfs_pll_fs660c32_set_rate(), but I now got a warning that only shows up in some configurations (i.e. without gcc -Os) about the params.ndiv being used uninitialized in the error case: drivers/clk/st/clkgen-fsyn.c: In function 'quadfs_pll_fs660c32_set_rate': drivers/clk/st/clkgen-fsyn.c:584:75: warning: 'params.ndiv' may be used uninitialized in this function [-Wmaybe-uninitialized] drivers/clk/st/clkgen-fsyn.c:574:16: note: 'params.ndiv' was declared here This changes the error handling so we bail for invalid arguments rather than continuing with uninitialized data. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions