staging: comedi: ni_mio_common: fix CamelCase in ni_serial_hw_readwrite8()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 14 Apr 2016 16:58:05 +0000 (09:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 05:17:28 +0000 (22:17 -0700)
Fix the checkpatch.pl issue:
CHECK: Avoid CamelCase: <Error>

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/ni_mio_common.c

index 655a1a1d0c61b52a61ddfe3f077772ad606c48e7..d2b359a0e7a3de54c05c78d08d05374ab902b245 100644 (file)
@@ -3747,7 +3747,7 @@ static int ni_serial_hw_readwrite8(struct comedi_device *dev,
        status1 = ni_stc_readw(dev, NISTC_STATUS1_REG);
        if (status1 & NISTC_STATUS1_SERIO_IN_PROG) {
                err = -EBUSY;
-               goto Error;
+               goto error;
        }
 
        devpriv->dio_control |= NISTC_DIO_CTRL_HW_SER_START;
@@ -3763,7 +3763,7 @@ static int ni_serial_hw_readwrite8(struct comedi_device *dev,
                        dev_err(dev->class_dev,
                                "SPI serial I/O didn't finish in time!\n");
                        err = -ETIME;
-                       goto Error;
+                       goto error;
                }
        }
 
@@ -3776,7 +3776,7 @@ static int ni_serial_hw_readwrite8(struct comedi_device *dev,
        if (data_in)
                *data_in = ni_stc_readw(dev, NISTC_DIO_SERIAL_IN_REG);
 
-Error:
+error:
        ni_stc_writew(dev, devpriv->dio_control, NISTC_DIO_CTRL_REG);
 
        return err;