Staging: comedi: Remove exceptional & on function name
authorShraddha Barke <shraddha.6596@gmail.com>
Tue, 13 Oct 2015 15:37:47 +0000 (21:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 17:11:03 +0000 (10:11 -0700)
n this file, function names are otherwise used as pointers without &.

A simplified version of the Coccinelle semantic patch that makes this
change is as follows:

// <smpl>
@r@
identifier f;
@@

f(...) { ... }
@@
identifier r.f;
@@

- &f
+ f
// </smpl>

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c

index ef4b58b2f7ef5bd1ac99941d3c2f143b41f19412..f341421f16445123324a225d7c952f7550256937 100644 (file)
@@ -1341,7 +1341,7 @@ static int parse_insn(struct comedi_device *dev, struct comedi_insn *insn,
                        goto out;
                }
                /* This looks arbitrary.  It is. */
-               s->busy = &parse_insn;
+               s->busy = parse_insn;
                switch (insn->insn) {
                case INSN_READ:
                        ret = s->insn_read(dev, s, insn, data);