From patchwork Thu May 29 11:00:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 31114 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4667720068 for ; Thu, 29 May 2014 11:00:17 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wm4sf698230obc.10 for ; Thu, 29 May 2014 04:00:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=IkGGxbaVVg4qIf3wE7NrSipdaJBcrah7MatscszN8Kc=; b=PvKBNRR6hXi5A/cUMLq1bUAQl67E1j5KtWPk75mvGCZoOsSuBo2PPeFBgP7M4e1BtB mfwx1SQHRO6uD8oL0tOwnhWBF1z71OON5asy846FGWg8LCy4QqTnOBy9aSp2gikQDrx7 6IPt6WPlm3wnw4ZCgSFnkanvteLaDT5hALOFtWaCc3Qd/Wuzqj8UgyhbbNge466t4mv5 gZV+k/4NbkglP7BAVxOuZQP1SSX1RYEt6OcE4UqCqEnJxUR1iR6pq9yP0g2ZulSoh71s a6kxoOsFL7XMpiQ27wL+lqQ/UCW9RoCsYBJU1n+SBS8bbUqJAa1oR6OMPcx4rO1zFurs +BEg== X-Gm-Message-State: ALoCoQm8PKdhzUdKAJguWdttgtxppLn5Z7mRXWBRdSJQv/fpCLq9vuYhRGdxdPzQH2oiPrFD9QhF X-Received: by 10.182.91.79 with SMTP id cc15mr2806088obb.13.1401361216856; Thu, 29 May 2014 04:00:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.166 with SMTP id z35ls498849qgz.93.gmail; Thu, 29 May 2014 04:00:16 -0700 (PDT) X-Received: by 10.58.188.115 with SMTP id fz19mr1139596vec.40.1401361216760; Thu, 29 May 2014 04:00:16 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id sb3si180817vdc.24.2014.05.29.04.00.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 May 2014 04:00:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hq11so170322vcb.36 for ; Thu, 29 May 2014 04:00:16 -0700 (PDT) X-Received: by 10.58.186.207 with SMTP id fm15mr5900231vec.4.1401361216639; Thu, 29 May 2014 04:00:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp18788vcb; Thu, 29 May 2014 04:00:16 -0700 (PDT) X-Received: by 10.194.8.229 with SMTP id u5mr9282193wja.65.1401361215897; Thu, 29 May 2014 04:00:15 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id vp1si682835wjc.44.2014.05.29.04.00.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 29 May 2014 04:00:15 -0700 (PDT) Received-SPF: none (google.com: pm215@archaic.org.uk does not designate permitted sender hosts) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1Wpy4F-0006hp-44; Thu, 29 May 2014 12:00:15 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, qemu-trivial@nongnu.org, Jan Kiszka Subject: [PATCH] slirp: Remove unused zero_ethaddr[] variable Date: Thu, 29 May 2014 12:00:15 +0100 Message-Id: <1401361215-25752-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The zero_ethaddr[] array is never used; delete it. Signed-off-by: Peter Maydell --- clang 3.4 warns about unused const variables like this and also about unused functions; we have over 400 such warnings currently, of which some are simple "forgot to clean up redundant code" like this one, some are deliberate in some sense (usually the function/var is used in one config but not another), and some are outright bugs. Anybody feel like wading through them? :-) slirp/slirp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/slirp/slirp.c b/slirp/slirp.c index 3fb48a4..b7f3726 100644 --- a/slirp/slirp.c +++ b/slirp/slirp.c @@ -37,8 +37,6 @@ static const uint8_t special_ethaddr[ETH_ALEN] = { 0x52, 0x55, 0x00, 0x00, 0x00, 0x00 }; -static const uint8_t zero_ethaddr[ETH_ALEN] = { 0, 0, 0, 0, 0, 0 }; - u_int curtime; static QTAILQ_HEAD(slirp_instances, Slirp) slirp_instances =