summaryrefslogtreecommitdiffstats
path: root/scripts/coccinelle/return_directly.cocci
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2017-05-16 02:11:50 +0200
committerStefan Hajnoczi2017-06-07 15:38:44 +0200
commitf652402487be592402a5edc000a652344e842369 (patch)
tree0145af01b1004830a922c14ce7d4d572f445e024 /scripts/coccinelle/return_directly.cocci
parentoslib: strip trailing '\n' from error_setg() string argument (diff)
downloadqemu-f652402487be592402a5edc000a652344e842369.tar.gz
qemu-f652402487be592402a5edc000a652344e842369.tar.xz
qemu-f652402487be592402a5edc000a652344e842369.zip
coccinelle: fix typo in comment
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/coccinelle/return_directly.cocci')
-rw-r--r--scripts/coccinelle/return_directly.cocci2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/coccinelle/return_directly.cocci b/scripts/coccinelle/return_directly.cocci
index 48680f2c2a..4cf50e75ea 100644
--- a/scripts/coccinelle/return_directly.cocci
+++ b/scripts/coccinelle/return_directly.cocci
@@ -1,4 +1,4 @@
-// replace 'R = X; return R;' with 'return R;'
+// replace 'R = X; return R;' with 'return X;'
@@
identifier VAR;
expression E;