]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: comedi: usbduxfast: remove extra dev_err() messages
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 20:37:07 +0000 (13:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:24:26 +0000 (16:24 -0700)
A dev_err() message is output if send_dux_commands() fails. Remove
the extra dev_err() messages output by the callers.

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

index 6178a5d77826051eb2eed916fd407dc0a7ca2328..102b24d80d82d34ad8588606a78aebbb6feac806 100644 (file)
@@ -997,8 +997,6 @@ static int usbduxfast_ai_cmd(struct comedi_device *dev,
        /* 0 means that the AD commands are sent */
        result = send_dux_commands(dev, SENDADCOMMANDS);
        if (result < 0) {
-               dev_err(dev->class_dev,
-                       "adc command could not be submitted, aborting\n");
                up(&devpriv->sem);
                return result;
        }
@@ -1119,8 +1117,6 @@ static int usbduxfast_ai_insn_read(struct comedi_device *dev,
        /* 0 means that the AD commands are sent */
        err = send_dux_commands(dev, SENDADCOMMANDS);
        if (err < 0) {
-               dev_err(dev->class_dev,
-                       "adc command could not be submitted, aborting\n");
                up(&devpriv->sem);
                return err;
        }