]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: amplc_pci224: no need for '&function'
authorIan Abbott <abbotti@mev.co.uk>
Thu, 31 Jul 2014 13:47:48 +0000 (14:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:09 +0000 (12:23 -0700)
Remove the "address-of" operator when the operand is a function.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pci224.c

index 68fc407b15592896d0c2d479e29a2d94d2d8d79e..b8b86abf52a206afe62876eaa1058d59cc27ef86 100644 (file)
@@ -1173,15 +1173,14 @@ static int pci224_attach_common(struct comedi_device *dev,
        s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_CMD_WRITE;
        s->n_chan = thisboard->ao_chans;
        s->maxdata = (1 << thisboard->ao_bits) - 1;
-       s->insn_write = &pci224_ao_insn_write;
-       s->insn_read = &pci224_ao_insn_read;
+       s->insn_write = pci224_ao_insn_write;
+       s->insn_read = pci224_ao_insn_read;
        s->len_chanlist = s->n_chan;
-
        dev->write_subdev = s;
-       s->do_cmd = &pci224_ao_cmd;
-       s->do_cmdtest = &pci224_ao_cmdtest;
-       s->cancel = &pci224_ao_cancel;
-       s->munge = &pci224_ao_munge;
+       s->do_cmd = pci224_ao_cmd;
+       s->do_cmdtest = pci224_ao_cmdtest;
+       s->cancel = pci224_ao_cancel;
+       s->munge = pci224_ao_munge;
 
        /* Sort out channel range options. */
        if (thisboard->model == pci234_model) {