batman-adv: Split combined variable declarations

Message ID 1297124820-26721-1-git-send-email-sven@narfation.org (mailing list archive)
State Accepted, archived
Headers

Commit Message

Sven Eckelmann Feb. 8, 2011, 12:27 a.m. UTC
  Multiple variable declarations in a single statements over multiple lines can
be split into multiple variable declarations without changing the actual
behavior.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 batman-adv/unicast.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
  

Comments

Marek Lindner Feb. 8, 2011, 12:41 p.m. UTC | #1
On Tuesday 08 February 2011 01:27:00 Sven Eckelmann wrote:
> Multiple variable declarations in a single statements over multiple lines
> can be split into multiple variable declarations without changing the
> actual behavior.

Applied in revision 1935.

Thanks,
Marek
  

Patch

diff --git a/batman-adv/unicast.c b/batman-adv/unicast.c
index 52b52e3..db62b66 100644
--- a/batman-adv/unicast.c
+++ b/batman-adv/unicast.c
@@ -39,8 +39,8 @@  static struct sk_buff *frag_merge_packet(struct list_head *head,
 		(struct unicast_frag_packet *)skb->data;
 	struct sk_buff *tmp_skb;
 	struct unicast_packet *unicast_packet;
-	int hdr_len = sizeof(struct unicast_packet),
-	uni_diff = sizeof(struct unicast_frag_packet) - hdr_len;
+	int hdr_len = sizeof(struct unicast_packet);
+	int uni_diff = sizeof(struct unicast_frag_packet) - hdr_len;
 
 	/* set skb to the first part and tmp_skb to the second part */
 	if (up->flags & UNI_FRAG_HEAD) {