Staging: serqt_usb2: fix space coding style issue in serqt_usb2.c
authorRuslan Pisarev <ruslan@rpisarev.org.ua>
Sun, 11 Apr 2010 10:22:53 +0000 (13:22 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:35:54 +0000 (11:35 -0700)
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>
drivers/staging/serqt_usb2/serqt_usb2.c

index 44f2d4eaf84b1705f2a077afd04b85aff540d715..27841ef6a5689259e567b43259c8d14fb4747ee6 100644 (file)
@@ -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 =