From patchwork Wed Nov 23 21:13:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Jarosch X-Patchwork-Id: 127392 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 68AAEB70C5 for ; Thu, 24 Nov 2011 08:13:33 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755234Ab1KWVN2 (ORCPT ); Wed, 23 Nov 2011 16:13:28 -0500 Received: from re04.intra2net.com ([82.165.46.26]:43784 "EHLO re04.intra2net.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753248Ab1KWVN1 (ORCPT ); Wed, 23 Nov 2011 16:13:27 -0500 Received: from intranator.m.i2n (unknown [172.16.1.99]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by re04.intra2net.com (Postfix) with ESMTP id 3553630166; Wed, 23 Nov 2011 22:13:26 +0100 (CET) Received: from localhost (intranator.m.i2n [127.0.0.1]) by localhost (Postfix) with ESMTP id 08B152AC54; Wed, 23 Nov 2011 22:13:26 +0100 (CET) X-Virus-Scanned: by Intranator (www.intra2net.com) with AMaViS and F-Secure AntiVirus (fsavdb 2011-11-23_08) X-Spam-Status: X-Spam-Level: 0 Received: from pikkukde.a.i2n (unknown [192.168.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by intranator.m.i2n (Postfix) with ESMTPS id 4F4672AC53; Wed, 23 Nov 2011 22:13:23 +0100 (CET) Message-ID: <4ECD61F3.4040504@intra2net.com> Date: Wed, 23 Nov 2011 22:13:23 +0100 From: Thomas Jarosch User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: netdev@vger.kernel.org CC: shemminger@vyatta.com Subject: [iproute2 PATCH 1/2] tc: Remove unused variable 'res'. Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Detected by cppcheck. Signed-off-by: Thomas Jarosch --- tc/m_ipt.c | 2 -- tc/m_xt_old.c | 2 -- 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/tc/m_ipt.c b/tc/m_ipt.c index a73d400..b8655f8 100644 --- a/tc/m_ipt.c +++ b/tc/m_ipt.c @@ -396,11 +396,9 @@ static int parse_ipt(struct action_util *a,int *argc_p, char **argv = *argv_p; int argc = 0, iargc = 0; char k[16]; - int res = -1; int size = 0; int iok = 0, ok = 0; __u32 hook = 0, index = 0; - res = 0; lib_dir = getenv("IPTABLES_LIB_DIR"); if (!lib_dir) diff --git a/tc/m_xt_old.c b/tc/m_xt_old.c index 3804d7f..7ed7ecc 100644 --- a/tc/m_xt_old.c +++ b/tc/m_xt_old.c @@ -215,11 +215,9 @@ static int parse_ipt(struct action_util *a,int *argc_p, char **argv = *argv_p; int argc = 0, iargc = 0; char k[16]; - int res = -1; int size = 0; int iok = 0, ok = 0; __u32 hook = 0, index = 0; - res = 0; set_lib_dir();