summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTina Johnson <tinajohnson.1234@gmail.com>2014-09-21 00:08:05 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-23 08:18:41 -0700
commit26c4ea46a55c9056fa20e3c91b1989f3cd9473d7 (patch)
tree3e5eb27d00f22864569a6418059c0aafcdd06b97 /tools/perf/scripts/python
parentddcb81e7419baa90fab79dbbb1b983a69a235c91 (diff)
Staging: lustre: Replace GOTO macro with necessary code
The GOTO macro is neither standard in Linux nor does its definiton contain much useful code. Hence GOTO can be replaced with useful parts of its definition. In a statement like GOTO(label, rc), the replacing code will be goto label if rc is a constant or a variable. But in cases like GOTO(label, e) where e is an assignment statement, both assignment and goto statements are kept. This patch was done using Coccinelle and the following semantic patch was used: @@ identifier rc,label; expression e; constant c; @@ ( -GOTO(label,rc = e); +rc = e; +goto label; | -GOTO(label,rc); +goto label; | -GOTO(label,c); +goto label; ) Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions