staging: ft1000: Fix coding style in write_blk_fifo() function.
authorMarek Belisko <marek.belisko@open-nandra.com>
Thu, 3 Feb 2011 10:07:50 +0000 (11:07 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 20:43:43 +0000 (12:43 -0800)
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ft1000/ft1000-usb/ft1000_download.c

index 7a930f56ff4696346684602d5f7f5e3ee3bdd878..0c69a68c5c4b6b601a113521d79c0d32cabf0217 100644 (file)
@@ -644,44 +644,42 @@ static void usb_dnld_complete (struct urb *urb)
 // Notes:
 //
 //---------------------------------------------------------------------------
-static u32 write_blk_fifo (struct ft1000_device *ft1000dev, u16 **pUsFile, u8 **pUcFile, long word_length)
+static u32 write_blk_fifo(struct ft1000_device *ft1000dev, u16 **pUsFile,
+                         u8 **pUcFile, long word_length)
 {
-   u32 Status = STATUS_SUCCESS;
-   int byte_length;
-   long aligncnt;
-
-   byte_length = word_length * 4;
+       u32 Status = STATUS_SUCCESS;
+       int byte_length;
+       long aligncnt;
 
-   if (byte_length % 4)
-      aligncnt = 4 - (byte_length % 4);
-   else
-      aligncnt = 0;
-   byte_length += aligncnt;
+       byte_length = word_length * 4;
 
-   if (byte_length && ((byte_length % 64) == 0)) {
-      byte_length += 4;
-   }
+       if (byte_length % 4)
+               aligncnt = 4 - (byte_length % 4);
+       else
+               aligncnt = 0;
+       byte_length += aligncnt;
 
-   if (byte_length < 64)
-       byte_length = 68;
+       if (byte_length && ((byte_length % 64) == 0))
+               byte_length += 4;
 
+       if (byte_length < 64)
+               byte_length = 68;
 
-    usb_init_urb(ft1000dev->tx_urb);
-    memcpy (ft1000dev->tx_buf, *pUcFile, byte_length);
-    usb_fill_bulk_urb(ft1000dev->tx_urb,
-                      ft1000dev->dev,
-                      usb_sndbulkpipe(ft1000dev->dev, ft1000dev->bulk_out_endpointAddr),
-                      ft1000dev->tx_buf,
-                      byte_length,
-                      usb_dnld_complete,
-                      (void*)ft1000dev);
+       usb_init_urb(ft1000dev->tx_urb);
+       memcpy(ft1000dev->tx_buf, *pUcFile, byte_length);
+       usb_fill_bulk_urb(ft1000dev->tx_urb,
+                         ft1000dev->dev,
+                         usb_sndbulkpipe(ft1000dev->dev,
+                                         ft1000dev->bulk_out_endpointAddr),
+                         ft1000dev->tx_buf, byte_length, usb_dnld_complete,
+                         (void *)ft1000dev);
 
-    usb_submit_urb(ft1000dev->tx_urb, GFP_ATOMIC);
+       usb_submit_urb(ft1000dev->tx_urb, GFP_ATOMIC);
 
-   *pUsFile = *pUsFile + (word_length << 1);
-   *pUcFile = *pUcFile + (word_length << 2);
+       *pUsFile = *pUsFile + (word_length << 1);
+       *pUcFile = *pUcFile + (word_length << 2);
 
-   return Status;
+       return Status;
 }
 
 //---------------------------------------------------------------------------