staging: comedi: dmm32at: remove final attach noise and fix return value
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:41:34 +0000 (16:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:20:19 +0000 (09:20 -0800)
The "success" message after an attach is just added noise. Remove it.

The normal return value for "success" is 0.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dmm32at.c

index cac83585ef86191a176cfae753a767a6629fa8fa..bd192de319d36b46c7496a682892f86191c8e932 100644 (file)
@@ -793,11 +793,7 @@ static int dmm32at_attach(struct comedi_device *dev,
        s->insn_bits = dmm32at_dio_insn_bits;
        s->insn_config = dmm32at_dio_insn_config;
 
-       /* success */
-       printk(KERN_INFO "comedi%d: dmm32at: attached\n", dev->minor);
-
-       return 1;
-
+       return 0;
 }
 
 static struct comedi_driver dmm32at_driver = {