]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Staging: irda: drivers: Move the curly bracket to the same line as if
authorMeghana Madhyastha <meghana.madhyastha@gmail.com>
Sat, 16 Sep 2017 06:08:38 +0000 (11:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2017 09:53:16 +0000 (11:53 +0200)
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.

Signed-off-by: Meghana Madhyastha <meghana.madhyastha@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/irda/drivers/ali-ircc.c

index 756ae53dc1ecd7f9d79e7c9c8313408667796b7a..589cd01797f47c9745156f16802e4e9782392f28 100644 (file)
@@ -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;