staging: comedi: amplc_pci230: Replace NULLFUNC
authorIan Abbott <abbotti@mev.co.uk>
Fri, 8 Jun 2012 09:40:05 +0000 (10:40 +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_pci230.c

index f2ad35c6527d4ac2ed89c70be66cab0a30c6ff83..2a43df5d966ea7c4cc4451d4086d3790471c4491 100644 (file)
@@ -430,9 +430,6 @@ enum {
 /* 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()
 
@@ -1491,7 +1488,7 @@ static int pci230_ao_inttrig_start(struct comedi_device *dev,
        if (trig_num != 0)
                return -EINVAL;
 
-       s->async->inttrig = NULLFUNC;
+       s->async->inttrig = NULL;
        pci230_ao_start(dev, s);
 
        return 1;
@@ -2292,7 +2289,7 @@ static int pci230_ai_inttrig_start(struct comedi_device *dev,
        if (trig_num != 0)
                return -EINVAL;
 
-       s->async->inttrig = NULLFUNC;
+       s->async->inttrig = NULL;
        pci230_ai_start(dev, s);
 
        return 1;