Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: comedi: amplc_pci224: Replace NULLFUNC

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>

authored by

Ian Abbott and committed by
Greg Kroah-Hartman
cbdfaffc 83afda9d

+1 -4
+1 -4
drivers/staging/comedi/drivers/amplc_pci224.c
··· 265 265 /* Combine old and new bits. */ 266 266 #define COMBINE(old, new, mask) (((old) & ~(mask)) | ((new) & (mask))) 267 267 268 - /* A generic null function pointer value. */ 269 - #define NULLFUNC 0 270 - 271 268 /* Current CPU. XXX should this be hard_smp_processor_id()? */ 272 269 #define THISCPU smp_processor_id() 273 270 ··· 700 703 if (trignum != 0) 701 704 return -EINVAL; 702 705 703 - s->async->inttrig = NULLFUNC; 706 + s->async->inttrig = NULL; 704 707 pci224_ao_start(dev, s); 705 708 706 709 return 1;