OSDN Git Service

staging: lustre: lmv: expand the GOTO macro
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 27 Aug 2014 21:01:34 +0000 (23:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 19:08:43 +0000 (12:08 -0700)
commit4d54556f791318f49fed3b254ffd6248f35a207c
tree687eb8a664c9c983e9ee7a2838f51432d55b2a88
parentfbe7c6c72a8f36e78cf3886573bbc0fdd0aa55b5
staging: lustre: lmv: expand the GOTO macro

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier lbl;
identifier rc;
constant c;
@@

- GOTO(lbl,\(rc\|c\));
+ goto lbl;

@@
identifier lbl;
expression rc;
@@

- GOTO(lbl,rc);
+ rc;
+ goto lbl;
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lmv/lmv_intent.c
drivers/staging/lustre/lustre/lmv/lmv_obd.c