[PATCH 6/8] staging:rtl8821ae: Fix code indentation errors in pci.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fixed all the code indentation errors found by checkpatch.pl script

Signed-off-by: Gokulnath A <Gokulnath.Avanashilingam@xxxxxxxxxxxx>
---
 drivers/staging/rtl8821ae/pci.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/staging/rtl8821ae/pci.c b/drivers/staging/rtl8821ae/pci.c
index 8e28890..c0bdb83 100644
--- a/drivers/staging/rtl8821ae/pci.c
+++ b/drivers/staging/rtl8821ae/pci.c
@@ -398,7 +398,7 @@ static u8 _rtl_pci_get_pciehdr_offset(struct ieee80211_hw *hw)
 		    PCI_CAPABILITY_ID_PCI_EXPRESS)
 			break;
 		else
-        		capability_offset = capability_hdr.next;
+			capability_offset = capability_hdr.next;
 	}
 	return capability_offset;
 }
@@ -406,7 +406,7 @@ static u8 _rtl_pci_get_pciehdr_offset(struct ieee80211_hw *hw)
 /*<delete in kernel end>*/
 
 bool rtl_pci_check_buddy_priv(struct ieee80211_hw *hw,
-        		      struct rtl_priv **buddy_priv)
+			      struct rtl_priv **buddy_priv)
 {
 	struct rtl_priv *rtlpriv = rtl_priv(hw);
 	struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw);
@@ -875,7 +875,7 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw)
 		/* AAAAAAttention !!!
 		 * We can NOT access 'skb' before 'pci_unmap_single' */
 		pci_unmap_single(rtlpci->pdev, *((dma_addr_t *) skb->cb),
-			 	 rtlpci->rxbuffersize, PCI_DMA_FROMDEVICE);
+				 rtlpci->rxbuffersize, PCI_DMA_FROMDEVICE);
 
 		if (rtlpriv->use_new_trx_flow) {
 			buffer_desc = &rtlpci->rx_ring[rxring_idx].buffer_desc[
@@ -930,7 +930,7 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw)
 			if (is_broadcast_ether_addr(hdr->addr1)) {
 				;/*TODO*/
 			} else if (is_multicast_ether_addr(hdr->addr1)) {
-			 	;/*TODO*/
+				;/*TODO*/
 			} else {
 				unicast = true;
 				rtlpriv->stats.rxbytesunicast += skb->len;
@@ -1204,8 +1204,8 @@ static void _rtl_pci_prepare_bcn_tasklet(struct ieee80211_hw *hw)
 /*<delete in kernel start>*/
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 7, 0))
 	rtlpriv->cfg->ops->fill_tx_desc(hw, hdr, (u8 *) pdesc,
-				        (u8 *)pbuffer_desc, info, pskb,
-				        BEACON_QUEUE, &tcb_desc);
+					(u8 *)pbuffer_desc, info, pskb,
+					 BEACON_QUEUE, &tcb_desc);
 #else
 /*<delete in kernel end>*/
 	rtlpriv->cfg->ops->fill_tx_desc(hw, hdr, (u8 *) pdesc,
@@ -1378,8 +1378,8 @@ static int _rtl_pci_init_rx_ring(struct ieee80211_hw *hw, int rxring_idx)
 		rtlpci->rx_ring[rxring_idx].buffer_desc =
 		    pci_alloc_consistent(rtlpci->pdev,
 					 sizeof(*rtlpci->rx_ring[rxring_idx].
-					        buffer_desc) *
-					        rtlpci->rxringcount,
+						buffer_desc) *
+						rtlpci->rxringcount,
 					 &rtlpci->rx_ring[rxring_idx].dma);
 		if (!rtlpci->rx_ring[rxring_idx].buffer_desc ||
 		    (unsigned long)rtlpci->rx_ring[rxring_idx].buffer_desc & 0xFF) {
@@ -1406,7 +1406,7 @@ static int _rtl_pci_init_rx_ring(struct ieee80211_hw *hw, int rxring_idx)
 		rtlpci->rx_ring[rxring_idx].desc =
 		    pci_alloc_consistent(rtlpci->pdev,
 					 sizeof(*rtlpci->rx_ring[rxring_idx].
-					        desc) * rtlpci->rxringcount,
+						desc) * rtlpci->rxringcount,
 					 &rtlpci->rx_ring[rxring_idx].dma);
 		if (!rtlpci->rx_ring[rxring_idx].desc ||
 		    (unsigned long)rtlpci->rx_ring[rxring_idx].desc & 0xFF) {
@@ -1491,7 +1491,7 @@ static void _rtl_pci_free_rx_ring(struct ieee80211_hw *hw, int rxring_idx)
 	if (rtlpriv->use_new_trx_flow) {
 		pci_free_consistent(rtlpci->pdev,
 				    sizeof(*rtlpci->rx_ring[rxring_idx].
-				           buffer_desc) * rtlpci->rxringcount,
+					   buffer_desc) * rtlpci->rxringcount,
 				    rtlpci->rx_ring[rxring_idx].buffer_desc,
 				    rtlpci->rx_ring[rxring_idx].dma);
 		rtlpci->rx_ring[rxring_idx].buffer_desc = NULL;
@@ -2232,7 +2232,7 @@ struct ieee80211_hw *hw_export = NULL;
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
 int rtl_pci_probe(struct pci_dev *pdev,
-                  const struct pci_device_id *id)
+		 const struct pci_device_id *id)
 
 #else
 int __devinit rtl_pci_probe(struct pci_dev *pdev,
-- 
1.8.1.2

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux