aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/irda
diff options
context:
space:
mode:
authorMeghana Madhyastha <meghana.madhyastha@gmail.com>2017-09-16 11:38:38 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-18 11:53:16 +0200
commitbf90447caa71021dcbd8ae35496ea11b1c3423b2 (patch)
tree878aad50815ad44ab5a1c126f962902c51f50379 /drivers/staging/irda
parentStaging: irda: Remove parentheses on the right of assignment (diff)
downloadlinux-dev-bf90447caa71021dcbd8ae35496ea11b1c3423b2.tar.xz
linux-dev-bf90447caa71021dcbd8ae35496ea11b1c3423b2.zip
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. 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>
Diffstat (limited to 'drivers/staging/irda')
-rw-r--r--drivers/staging/irda/drivers/ali-ircc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/irda/drivers/ali-ircc.c b/drivers/staging/irda/drivers/ali-ircc.c
index 756ae53dc1ec..589cd01797f4 100644
--- a/drivers/staging/irda/drivers/ali-ircc.c
+++ b/drivers/staging/irda/drivers/ali-ircc.c
@@ -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;