staging: comedi: amplc_pci224: Replace NULLFUNC
authorIan Abbott <abbotti@mev.co.uk>
Fri, 8 Jun 2012 09:39:42 +0000 (10:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jun 2012 23:58:58 +0000 (16:58 -0700)
The source code defines a macro NULLFUNC

  #define NULLFUNC 0

and uses it as a generic null function pointer constant.  This is
superfluous.  Just use NULL instead.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pci224.c

index 43f07f8f365e5e85a0056e0707c84cdfdc7a321b..a1e23bafabea9e7f57dffa06703728a55fefb978 100644 (file)
@@ -265,9 +265,6 @@ Caveats:
 /* Combine old and new bits. */
 #define COMBINE(old, new, mask)        (((old) & ~(mask)) | ((new) & (mask)))
 
-/* A generic null function pointer value.  */
-#define NULLFUNC       0
-
 /* Current CPU.  XXX should this be hard_smp_processor_id()? */
 #define THISCPU                smp_processor_id()
 
@@ -703,7 +700,7 @@ pci224_ao_inttrig_start(struct comedi_device *dev, struct comedi_subdevice *s,
        if (trignum != 0)
                return -EINVAL;
 
-       s->async->inttrig = NULLFUNC;
+       s->async->inttrig = NULL;
        pci224_ao_start(dev, s);
 
        return 1;
This page took 0.030322 seconds and 5 git commands to generate.