[svn-commits] sruffell: linux/trunk r6123 - /linux/trunk/drivers/dahdi/voicebus.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 11 09:50:56 CDT 2009


Author: sruffell
Date: Wed Mar 11 09:50:53 2009
New Revision: 6123

URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6123
Log:
Adding spaces around some other operators and moving 'inline' keyword.

Modified:
    linux/trunk/drivers/dahdi/voicebus.c

Modified: linux/trunk/drivers/dahdi/voicebus.c
URL: http://svn.digium.com/svn-view/dahdi/linux/trunk/drivers/dahdi/voicebus.c?view=diff&rev=6123&r1=6122&r2=6123
==============================================================================
--- linux/trunk/drivers/dahdi/voicebus.c (original)
+++ linux/trunk/drivers/dahdi/voicebus.c Wed Mar 11 09:50:53 2009
@@ -429,7 +429,7 @@
 
 	assert(vb_is_stopped(vb));
 
-	for (i=0; i < DRING_SIZE; ++i) {
+	for (i = 0; i < DRING_SIZE; ++i) {
 		d = vb_descriptor(dl, i);
 		if (d->buffer1) {
 			d->buffer1 = 0;
@@ -489,7 +489,7 @@
 	ret = __vb_getctl(vb, 0x0048);
 	vb->sdi |= CSR9_MDC;
 	__vb_setctl(vb, 0x0048, vb->sdi);
-	return (ret & CSR9_MDI) ? 1: 0;
+	return (ret & CSR9_MDI) ? 1 : 0;
 }
 
 static void
@@ -512,7 +512,7 @@
 static unsigned int
 __vb_sdi_recvbits(struct voicebus *vb, int count)
 {
-	unsigned int bits=0;
+	unsigned int bits = 0;
 	vb->sdi |= CSR9_MMC;
 	__vb_setctl(vb, 0x0048, vb->sdi);
 	while (count--) {
@@ -795,7 +795,7 @@
 /*!
  * \brief Instruct the hardware to check for a new tx descriptor.
  */
-inline static void
+static inline void
 __vb_tx_demand_poll(struct voicebus *vb)
 {
 	__vb_setctl(vb, 0x0008, 0x00000000);
@@ -818,7 +818,7 @@
  * \brief Command the hardware to check if it owns the next receive
  * descriptor.
  */
-inline static void
+static inline void
 __vb_rx_demand_poll(struct voicebus *vb)
 {
 	__vb_setctl(vb, 0x0010, 0x00000000);
@@ -912,7 +912,7 @@
 		}
 	}
 
-	for (i=0; i < vb->min_tx_buffer_count; ++i) {
+	for (i = 0; i < vb->min_tx_buffer_count; ++i) {
 		vbb = voicebus_alloc(vb);
 
 		if (unlikely(NULL == vbb))
@@ -1018,8 +1018,7 @@
 #endif
 		assert(vb_is_stopped(vb));
 		clear_bit(STOP, &vb->flags);
-	}
-	else {
+	} else {
 		VB_PRINTK(vb, WARNING, "Timeout while waiting for board to "\
 			"stop.\n");
 	}




More information about the svn-commits mailing list