diff options
author | Ruslan Pisarev <ruslan@rpisarev.org.ua> | 2010-04-11 13:22:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-11 11:35:54 -0700 |
commit | 1695eb36bf4616c6ec062d2dc2c3abe54d3aa313 (patch) | |
tree | 6127fdc496ae56f9aced2c369ec3a8e7035279fb /drivers/staging/serqt_usb2/serqt_usb2.c | |
parent | cb73da2524df912ddec4aed0b6df1c0374f4ffc1 (diff) | |
download | op-kernel-dev-1695eb36bf4616c6ec062d2dc2c3abe54d3aa313.zip op-kernel-dev-1695eb36bf4616c6ec062d2dc2c3abe54d3aa313.tar.gz |
Staging: serqt_usb2: fix space coding style issue in serqt_usb2.c
This is a patch to the serqt_usb2.c files that fixed space error and
warning found by the checkpatch.pl tools.
Signed-off-by: Ruslan Pisarev <ruslan@rpisarev.org.ua>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/serqt_usb2/serqt_usb2.c')
-rw-r--r-- | drivers/staging/serqt_usb2/serqt_usb2.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/staging/serqt_usb2/serqt_usb2.c b/drivers/staging/serqt_usb2/serqt_usb2.c index 44f2d4e..27841ef 100644 --- a/drivers/staging/serqt_usb2/serqt_usb2.c +++ b/drivers/staging/serqt_usb2/serqt_usb2.c @@ -413,7 +413,7 @@ static void qt_read_bulk_callback(struct urb *urb) case 0x01: /* Modem status status change 4th byte must follow */ - dbg("Modem status status. \n"); + dbg("Modem status status.\n"); if (i > (RxCount - 4)) { dbg("Illegal escape sequences in received data\n"); break; @@ -424,7 +424,7 @@ static void qt_read_bulk_callback(struct urb *urb) flag = 1; break; case 0xff: - dbg("No status sequence. \n"); + dbg("No status sequence.\n"); if (tty) { ProcessRxChar(tty, port, data[i]); @@ -738,7 +738,7 @@ static int qt_startup(struct usb_serial *serial) if (!qt_port) { dbg("%s: kmalloc for quatech_port (%d) failed!.", __func__, i); - for(--i; i >= 0; i--) { + for (--i; i >= 0; i--) { port = serial->port[i]; kfree(usb_get_serial_port_data(port)); usb_set_serial_port_data(port, NULL); @@ -963,11 +963,11 @@ static int qt_open(struct tty_struct *tty, } - dbg("port number is %d \n", port->number); - dbg("serial number is %d \n", port->serial->minor); - dbg("Bulkin endpoint is %d \n", port->bulk_in_endpointAddress); - dbg("BulkOut endpoint is %d \n", port->bulk_out_endpointAddress); - dbg("Interrupt endpoint is %d \n", port->interrupt_in_endpointAddress); + dbg("port number is %d\n", port->number); + dbg("serial number is %d\n", port->serial->minor); + dbg("Bulkin endpoint is %d\n", port->bulk_in_endpointAddress); + dbg("BulkOut endpoint is %d\n", port->bulk_out_endpointAddress); + dbg("Interrupt endpoint is %d\n", port->interrupt_in_endpointAddress); dbg("port's number in the device is %d\n", quatech_port->port_num); quatech_port->read_urb = port->read_urb; @@ -1470,7 +1470,7 @@ static int qt_tiocmget(struct tty_struct *tty, struct file *file) int retval = -ENODEV; unsigned long flags; - dbg("In %s \n", __func__); + dbg("In %s\n", __func__); if (!serial) return -ENODEV; @@ -1496,14 +1496,14 @@ static int qt_tiocmset(struct tty_struct *tty, struct file *file, unsigned long flags; int retval = -ENODEV; - dbg("In %s \n", __func__); + dbg("In %s\n", __func__); if (!serial) return -ENODEV; spin_lock_irqsave(&qt_port->lock, flags); - dbg("%s - port %d \n", __func__, port->number); + dbg("%s - port %d\n", __func__, port->number); dbg("%s - qt_port->RxHolding = %d\n", __func__, qt_port->RxHolding); retval = qt_real_tiocmset(tty, port, file, serial, set); @@ -1584,9 +1584,9 @@ static int qt_calc_num_ports(struct usb_serial *serial) { int num_ports; - dbg("numberofendpoints: %d \n", + dbg("numberofendpoints: %d\n", (int)serial->interface->cur_altsetting->desc.bNumEndpoints); - dbg("numberofendpoints: %d \n", + dbg("numberofendpoints: %d\n", (int)serial->interface->altsetting->desc.bNumEndpoints); num_ports = |