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>
/* 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;
}
/* 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;
}