aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorBhumika Goyal <[email protected]>2016-02-29 01:14:33 +0530
committerGreg Kroah-Hartman <[email protected]>2016-03-01 19:38:34 -0800
commit2f27a3e298e33fa6caa4e1c57ff6773a4bcbf69c (patch)
tree2da7817212ef51c75bc530edb0f1e2f65366e3b2 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent04697f7b61b07aedf6fbf2bba73f07b231e44d6a (diff)
Staging: lustre: Remove print statement on function failure
The memory allocation functions generates a call stack containing all the context information on failure, so print statements can be removed on failure of these functions. Also remove unwanted {} around if block after removal of these statements. Done using coccinelle: @@ expression e,e1,e2; identifier x; @@ e=\(kmalloc\|kmalloc_array\|kzalloc\| devm_kzalloc\)(...); ...when!=e=e1 if(!e) -{ - \(printk\|DBG_8723A\|pr_err\|CERROR\|DBG_88E\)(...); ( goto x; | return e2; | return; ) -} Signed-off-by: Bhumika Goyal <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions