Staging: comedi: Add spaces after commas
[safe/jmp/linux-2.6] / drivers / staging / comedi / drivers / mite.c
index c82aeff..ae90177 100644 (file)
@@ -63,7 +63,7 @@
 
 MODULE_LICENSE("GPL");
 
-struct mite_struct *mite_devices = NULL;
+struct mite_struct *mite_devices;
 
 #define TOP_OF_PAGE(x) ((x)|(~(PAGE_MASK)))
 
@@ -317,7 +317,7 @@ void mite_dma_arm(struct mite_channel *mite_chan)
 
 /**************************************/
 
-int mite_buf_change(struct mite_dma_descriptor_ring *ring, comedi_async * async)
+int mite_buf_change(struct mite_dma_descriptor_ring *ring, struct comedi_async * async)
 {
        unsigned int n_links;
        int i;
@@ -331,9 +331,9 @@ int mite_buf_change(struct mite_dma_descriptor_ring *ring, comedi_async * async)
        ring->descriptors_dma_addr = 0;
        ring->n_links = 0;
 
-       if (async->prealloc_bufsz == 0) {
+       if (async->prealloc_bufsz == 0)
                return 0;
-       }
+
        n_links = async->prealloc_bufsz >> PAGE_SHIFT;
 
        MDPRINTK("ring->hw_dev=%p, n_links=0x%04x\n", ring->hw_dev, n_links);
@@ -395,9 +395,9 @@ void mite_prep_dma(struct mite_channel *mite_chan,
                   on e-series boards.  */
                chcr |= CHCR_BYTE_SWAP_DEVICE | CHCR_BYTE_SWAP_MEMORY;
        }
-       if (mite_chan->dir == COMEDI_INPUT) {
+       if (mite_chan->dir == COMEDI_INPUT)
                chcr |= CHCR_DEV_TO_MEM;
-       }
+
        writel(chcr, mite->mite_io_addr + MITE_CHCR(mite_chan->channel));
 
        /* to/from memory */
@@ -526,7 +526,7 @@ void mite_dma_disarm(struct mite_channel *mite_chan)
        writel(chor, mite->mite_io_addr + MITE_CHOR(mite_chan->channel));
 }
 
-int mite_sync_input_dma(struct mite_channel *mite_chan, comedi_async * async)
+int mite_sync_input_dma(struct mite_channel *mite_chan, struct comedi_async * async)
 {
        int count;
        unsigned int nbytes, old_alloc_count;
@@ -547,9 +547,9 @@ int mite_sync_input_dma(struct mite_channel *mite_chan, comedi_async * async)
        count = nbytes - async->buf_write_count;
        /* it's possible count will be negative due to
         * conservative value returned by mite_bytes_written_to_memory_lb */
-       if (count <= 0) {
+       if (count <= 0)
                return 0;
-       }
+
        comedi_buf_write_free(async, count);
 
        async->scan_progress += count;
@@ -561,7 +561,7 @@ int mite_sync_input_dma(struct mite_channel *mite_chan, comedi_async * async)
        return 0;
 }
 
-int mite_sync_output_dma(struct mite_channel *mite_chan, comedi_async * async)
+int mite_sync_output_dma(struct mite_channel *mite_chan, struct comedi_async * async)
 {
        int count;
        u32 nbytes_ub, nbytes_lb;
@@ -586,9 +586,9 @@ int mite_sync_output_dma(struct mite_channel *mite_chan, comedi_async * async)
                return -1;
        }
        count = nbytes_lb - async->buf_read_count;
-       if (count <= 0) {
+       if (count <= 0)
                return 0;
-       }
+
        if (count) {
                comedi_buf_read_free(async, count);
                async->events |= COMEDI_CB_BLOCK;
@@ -753,9 +753,8 @@ static void mite_decode(char **bit_str, unsigned int bits)
        int i;
 
        for (i = 31; i >= 0; i--) {
-               if (bits & (1 << i)) {
+               if (bits & (1 << i))
                        printk(" %s", bit_str[i]);
-               }
        }
        printk("\n");
 }