usb_serial: some coding style fixes

Previous thread: [PATCH] sanitize anon_inode_getfd() by Linux Kernel Mailing List on Friday, May 2, 2008 - 11:59 am. (1 message)

Next thread: [PATCH] split linux/file.h by Linux Kernel Mailing List on Friday, May 2, 2008 - 11:59 am. (1 message)
From: Linux Kernel Mailing List
Date: Friday, May 2, 2008 - 11:59 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c4d0f8...
Commit:     c4d0f8cbca3a97900f85b082064a63c7a5928bd7
Parent:     e5430f889ce04301152044cce15a4a11a3e21e7d
Author:     Alan Cox <alan@lxorguk.ukuu.org.uk>
AuthorDate: Tue Apr 29 14:35:39 2008 +0100
Committer:  Greg Kroah-Hartman <gregkh@suse.de>
CommitDate: Fri May 2 10:25:58 2008 -0700

    usb_serial: some coding style fixes
    
    Signed-off-by: Alan Cox <alan@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/usb/serial/aircable.c |   98 +++++++++++++++++++++--------------------
 drivers/usb/serial/airprime.c |   61 ++++++++++++++-----------
 drivers/usb/serial/ark3116.c  |   54 +++++++++++-----------
 drivers/usb/serial/ch341.c    |    2 +-
 4 files changed, 112 insertions(+), 103 deletions(-)

diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c
index 9b1bb34..db6f97a 100644
--- a/drivers/usb/serial/aircable.c
+++ b/drivers/usb/serial/aircable.c
@@ -147,7 +147,7 @@ static void serial_buf_free(struct circ_buf *cb)
  */
 static int serial_buf_data_avail(struct circ_buf *cb)
 {
-	return CIRC_CNT(cb->head,cb->tail,AIRCABLE_BUF_SIZE);
+	return CIRC_CNT(cb->head, cb->tail, AIRCABLE_BUF_SIZE);
 }
 
 /*
@@ -171,7 +171,7 @@ static int serial_buf_put(struct circ_buf *cb, const char *buf, int count)
 		cb->head = (cb->head + c) & (AIRCABLE_BUF_SIZE-1);
 		buf += c;
 		count -= c;
-		ret= c;
+		ret = c;
 	}
 	return ret;
 }
@@ -197,7 +197,7 @@ static int serial_buf_get(struct circ_buf *cb, char *buf, int count)
 		cb->tail = (cb->tail + c) & (AIRCABLE_BUF_SIZE-1);
 		buf += c;
 		count -= c;
-		ret= c;
+		ret = c;
 	}
 	return ret;
 }
@@ -208,7 +208,7 @@ static void aircable_send(struct usb_serial_port *port)
 {
 	int count, result;
 	struct aircable_private *priv = usb_get_serial_port_data(port);
-	unsigned char* buf;
+	unsigned char *buf;
 	__le16 *dbuf;
 	dbg("%s - port %d", ...
Previous thread: [PATCH] sanitize anon_inode_getfd() by Linux Kernel Mailing List on Friday, May 2, 2008 - 11:59 am. (1 message)

Next thread: [PATCH] split linux/file.h by Linux Kernel Mailing List on Friday, May 2, 2008 - 11:59 am. (1 message)