batman-adv: Split combined variable declarations
authorMarek Lindner <lindner_marek@yahoo.de>
Tue, 8 Feb 2011 12:43:54 +0000 (12:43 +0000)
committerSven Eckelmann <sven@narfation.org>
Fri, 11 Feb 2011 22:29:00 +0000 (23:29 +0100)
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: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/unicast.c

index 9b2a222518f7f9c1b041d6f0bad6fb1f8f31561c..6c92eefd1b81d4d84dcaa47e82f4214e200a74ea 100644 (file)
@@ -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) {