Skip to contentSkip to conversation

Staging: irda: drivers: Move the curly bracket to the same line as if

PATCH In review Meghana Madhyastha 2 participants 2 messages Sep 16, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: irda: drivers: Move the curly bracket to the same line as if

Move the left curly brace to the same line as the if statement. This coding style is more common and also reduces the number of lines of code.

---
 drivers/staging/irda/drivers/ali-ircc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/irda/drivers/ali-ircc.c +1 -2
index 756ae53..589cd01 100644
@@ -1876,8 +1876,7 @@ static int  ali_ircc_dma_receive_complete(struct ali_ircc_cb *self)
 			self->stamp = ktime_get();
 
 			skb = dev_alloc_skb(len+1);
-			if (!skb)
-			{
+			if (!skb) {
 				self->netdev->stats.rx_dropped++;
 
 				return FALSE;
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Meghana Madhyastha

Move the left curly brace to the same line as the if statement. This coding style is more common and also reduces the number of lines of code.

Quoted 28 lines
---
 drivers/staging/irda/drivers/ali-ircc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/irda/drivers/ali-ircc.c +1 -3
index 756ae53..589cd01 100644
@@ -1876,8 +1876,7 @@ static int  ali_ircc_dma_receive_complete(struct ali_ircc_cb *self)
 			self->stamp = ktime_get();
 
 			skb = dev_alloc_skb(len+1);
-			if (!skb)
-			{
+			if (!skb) {
 				self->netdev->stats.rx_dropped++;
 
 				return FALSE;
--

2.7.4

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170916060833.GA31923%40meghana-HP-Pavilion-Notebook.
For more options, visit https://groups.google.com/d/optout.