From patchwork Fri Feb 11 23:21:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 761 Return-Path: Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id A24CE1541E6 for ; Sat, 12 Feb 2011 00:21:55 +0100 (CET) Received: from sven-desktop.home.narfation.org (i59F6C012.versanet.de [89.246.192.18]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 6D3C7940AE; Sat, 12 Feb 2011 00:21:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=narfation.org; s=mail; t=1297466507; bh=kHY7/OVIjo74JTe71MeMGD5IMee153cH+DKN+Y36EPQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=lLy2sKPslNKinh0BsY873rzOteexZYxXhRLNwdMrmXQJrwJvc3Qz8duRkGRaB5qdv O/CMFSJEOAR45fWmouowsedk5GHmX4+KsHAyxgziPaqFTodaWxlZCpOK2qlpOGkyc4 OuRleSWy6jU/PmXBBk4/KRnzQRBontZh50bvx2Ag= From: Sven Eckelmann To: davem@davemloft.net Date: Sat, 12 Feb 2011 00:21:41 +0100 Message-Id: <1297466503-13246-3-git-send-email-sven@narfation.org> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1297466503-13246-1-git-send-email-sven@narfation.org> References: <1297466503-13246-1-git-send-email-sven@narfation.org> Cc: netdev@vger.kernel.org, b.a.t.m.a.n@lists.open-mesh.org, Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH 2/4] 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: Fri, 11 Feb 2011 23:21:55 -0000 From: Marek Lindner 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 Signed-off-by: Sven Eckelmann --- net/batman-adv/unicast.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/batman-adv/unicast.c b/net/batman-adv/unicast.c index 9b2a222..6c92eef 100644 --- a/net/batman-adv/unicast.c +++ b/net/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) {