batman-adv: format multi-line if in the correct way

Message ID 1322843932-21385-1-git-send-email-ordex@autistici.org (mailing list archive)
State Accepted, archived
Commit 8dd0e9973429c80f52483e8045862f61a74b6fd6
Headers

Commit Message

Antonio Quartulli Dec. 2, 2011, 4:38 p.m. UTC
  in an multi-line if statement leading edges should line up to the opening
parenthesis

Reported-by: David Miller <davem@davemloft.net>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
 routing.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
  

Comments

Marek Lindner Dec. 3, 2011, 7:20 a.m. UTC | #1
On Saturday, December 03, 2011 00:38:52 Antonio Quartulli wrote:
> in an multi-line if statement leading edges should line up to the opening
> parenthesis
> 
> Reported-by: David Miller <davem@davemloft.net>
> Signed-off-by: Antonio Quartulli <ordex@autistici.org>

Applied in revision 8dd0e99.

Thanks,
Marek
  

Patch

diff --git a/routing.c b/routing.c
index d5ddbd1..4363d19 100644
--- a/routing.c
+++ b/routing.c
@@ -627,8 +627,7 @@  int recv_tt_query(struct sk_buff *skb, struct hard_iface *recv_if)
 
 			/* Ensure we have all the claimed data */
 			if (unlikely(skb_headlen(skb) <
-					sizeof(struct tt_query_packet) +
-					tt_len))
+				     sizeof(struct tt_query_packet) + tt_len))
 				goto out;
 
 			handle_tt_response(bat_priv, tt_query);