Skip to content

Commit

Permalink
staging: comedi: amplc_pci224: Replace NULLFUNC
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Jun 11, 2012
1 parent 83afda9 commit cbdfaff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/staging/comedi/drivers/amplc_pci224.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,6 @@ Passing a zero for an option is the same as leaving it unspecified.
/* 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()

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cbdfaff

Please sign in to comment.