From: H Hartley Sweeten Date: Tue, 26 Nov 2013 23:41:34 +0000 (-0700) Subject: staging: comedi: dmm32at: remove final attach noise and fix return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b35db028f7f5c375ab9cef095ea48250d4c15ff;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: comedi: dmm32at: remove final attach noise and fix return value 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/dmm32at.c b/drivers/staging/comedi/drivers/dmm32at.c index cac83585ef86..bd192de319d3 100644 --- a/drivers/staging/comedi/drivers/dmm32at.c +++ b/drivers/staging/comedi/drivers/dmm32at.c @@ -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 = {