staging: lustre: lustre: obdecho: expand the GOTO macro in echo_client.c
authorJiayi Ye <yejiayily@gmail.com>
Mon, 20 Oct 2014 11:52:03 +0000 (19:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Oct 2014 03:09:11 +0000 (11:09 +0800)
commitabb368abf76059e07967808ef5da9f32d2b760ae
tree9a67c5589c4514d30a7744b8d5b5b7c14a32c2ac
parent38d676da615ac1a0b37572ac31ac8c7573f7dcfd
staging: lustre: lustre: obdecho: expand the GOTO macro in echo_client.c

The GOTO macro is not standard in Linux. The following Coccinelle semantic patch was used to expand the GOTO macro.

@@
identifier lbl;
identifier rc;
constant c;
@@

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

- GOTO(lbl,rc);
+ rc;
+ goto lbl;

Signed-off-by: Jiayi Ye <yejiayily@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdecho/echo_client.c