From: H Hartley Sweeten Date: Fri, 22 Jun 2012 23:19:47 +0000 (-0700) Subject: staging: comedi: ni_daq_700: Remove a "do nothing" function stub X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c0c33f69c08721d775fb0cf2d935ce5436314c68;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: comedi: ni_daq_700: Remove a "do nothing" function stub The function do_config() doesn't do anything. Just remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Frank Mori Hess Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_daq_700.c b/drivers/staging/comedi/drivers/ni_daq_700.c index 7ad54652b41f..99ce234ddfa9 100644 --- a/drivers/staging/comedi/drivers/ni_daq_700.c +++ b/drivers/staging/comedi/drivers/ni_daq_700.c @@ -107,8 +107,6 @@ struct subdev_700_struct { #define CALLBACK_FUNC (((struct subdev_700_struct *)s->private)->cb_func) #define subdevpriv ((struct subdev_700_struct *)s->private) -static void do_config(struct comedi_device *dev, struct comedi_subdevice *s); - static int subdev_700_cb(int dir, int port, int data, unsigned long arg) { /* port is always A for output and B for input (8255 emu) */ @@ -165,11 +163,6 @@ static int subdev_700_insn_config(struct comedi_device *dev, return 1; } -static void do_config(struct comedi_device *dev, struct comedi_subdevice *s) -{ /* use powerup defaults */ - return; -} - static int subdev_700_init(struct comedi_device *dev, struct comedi_subdevice *s, int (*cb) (int, int, int, unsigned long), @@ -196,7 +189,6 @@ static int subdev_700_init(struct comedi_device *dev, s->state = 0; s->io_bits = 0x00ff; - do_config(dev, s); return 0; }