Skip to contentSkip to conversation

igc: Tidy up some white space

PATCH New Dan Carpenter 2 participants 3 messages Oct 19, 2018 – Nov 1, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igc: Tidy up some white space

I just cleaned up a couple small white space issues.

---
 drivers/net/ethernet/intel/igc/igc_main.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/net/ethernet/intel/igc/igc_main.c +5 -5
index 9d85707e8a81..3233141c594b 100644
@@ -1108,7 +1108,7 @@ static struct sk_buff *igc_build_skb(struct igc_ring *rx_ring,
 
 	/* update pointers within the skb to store the data */
 	skb_reserve(skb, IGC_SKB_PAD);
-	 __skb_put(skb, size);
+	__skb_put(skb, size);
 
 	/* update buffer offset */
 #if (PAGE_SIZE < 8192)
@@ -1160,9 +1160,9 @@ static struct sk_buff *igc_construct_skb(struct igc_ring *rx_ring,
 				(va + headlen) - page_address(rx_buffer->page),
 				size, truesize);
 #if (PAGE_SIZE < 8192)
-	rx_buffer->page_offset ^= truesize;
+		rx_buffer->page_offset ^= truesize;
 #else
-	rx_buffer->page_offset += truesize;
+		rx_buffer->page_offset += truesize;
 #endif
 	} else {
 		rx_buffer->pagecnt_bias++;
@@ -1668,8 +1668,8 @@ static bool igc_clean_tx_irq(struct igc_q_vector *q_vector, int napi_budget)
 				tx_buffer->next_to_watch,
 				jiffies,
 				tx_buffer->next_to_watch->wb.status);
-				netif_stop_subqueue(tx_ring->netdev,
-						    tx_ring->queue_index);
+			netif_stop_subqueue(tx_ring->netdev,
+					    tx_ring->queue_index);
 
 			/* we are about to reset, no point in enabling stuff */
 			return true;
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 igc: Tidy up some white space

Quoted 34 lines · Dan Carpenter

I just cleaned up a couple small white space issues.

---
  drivers/net/ethernet/intel/igc/igc_main.c | 10 +++++-----
  1 file changed, 5 insertions(+), 5 deletions(-)
drivers/net/ethernet/intel/igc/igc_main.c +3 -3
index 9d85707e8a81..3233141c594b 100644
@@ -1108,7 +1108,7 @@ static struct sk_buff *igc_build_skb(struct igc_ring *rx_ring,
 
  	/* update pointers within the skb to store the data */
  	skb_reserve(skb, IGC_SKB_PAD);
-	 __skb_put(skb, size);
+	__skb_put(skb, size);
 
  	/* update buffer offset */
  #if (PAGE_SIZE < 8192)
@@ -1160,9 +1160,9 @@ static struct sk_buff *igc_construct_skb(struct igc_ring *rx_ring,
  				(va + headlen) - page_address(rx_buffer->page),
  				size, truesize);
  #if (PAGE_SIZE < 8192)
-	rx_buffer->page_offset ^= truesize;
+		rx_buffer->page_offset ^= truesize;
  #else
-	rx_buffer->page_offset += truesize;
+		rx_buffer->page_offset += truesize;
  #endif
  	} else {
  		rx_buffer->pagecnt_bias++;

drivers/net/ethernet/intel/igc/igc_main.c static bool igc_clean_tx_irq(struct igc_q_vector *q_vector, int napi_budget) · line 1675

Quoted 10 lines
drivers/net/ethernet/intel/igc/igc_main.c +2 -2
@@ -1668,8 +1668,8 @@ static bool igc_clean_tx_irq(struct igc_q_vector *q_vector, int napi_budget)
  				tx_buffer->next_to_watch,
  				jiffies,
  				tx_buffer->next_to_watch->wb.status);
-				netif_stop_subqueue(tx_ring->netdev,
-						    tx_ring->queue_index);
+			netif_stop_subqueue(tx_ring->netdev,
+					    tx_ring->queue_index);
 
  			/* we are about to reset, no point in enabling stuff */
  			return true;

Thanks for the patch. Good catch of typos.

#2 lore raw

PATCH 1/1 igc: Tidy up some white space

In reply to Dan Carpenter
Quoted 8 lines

From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Dan Carpenter
Sent: Friday, October 19, 2018 12:58 PM
To: Kirsher, Jeffrey T <[email protected]>; Neftin, Sasha <[email protected]>
Cc: kernel-janitors at vger.kernel.org; intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH] igc: Tidy up some white space

Quoted 7 lines

I just cleaned up a couple small white space issues.

---
 drivers/net/ethernet/intel/igc/igc_main.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)