From patchwork Tue Feb 8 00:27:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 796 Return-Path: Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id 51E08154300 for ; Tue, 8 Feb 2011 01:27:07 +0100 (CET) Received: from sven-desktop.home.narfation.org (i59F6AA24.versanet.de [89.246.170.36]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id E7D6E940AD; Tue, 8 Feb 2011 01:27:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=narfation.org; s=mail; t=1297124864; bh=L7pudNIAJBL1z1zQ8jDtR09ruK8xfxlVReoBmlL0BhA=; h=From:To:Cc:Subject:Date:Message-Id; b=ORIUsvfLu3LVYxOrO8d6tN/HtvFg3/4IOFUD9yKsgvTDLXP/wNQwmuQoGIQTOLg9C hlJfW2idwsBTFvqpynpA0Duy0K7YZzgQtK+PVvP5VJxkRURV3X44r5lD6zHnIB+kZp Uf58HJvn6OwkZCsyFWBQNu5xHmpTzayjw+NkiA9I= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Tue, 8 Feb 2011 01:27:00 +0100 Message-Id: <1297124820-26721-1-git-send-email-sven@narfation.org> X-Mailer: git-send-email 1.7.2.3 Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: Split combined variable declarations X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2011 00:27:07 -0000 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 --- batman-adv/unicast.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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) {