Message ID | 1401361166-25672-1-git-send-email-peter.maydell@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBC6Z756YVMIBBEVGTSOAKGQELXAURSQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8DDAC20068 for <linaro@patches.linaro.org>; Thu, 29 May 2014 10:59:31 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id pa12sf695956veb.3 for <linaro@patches.linaro.org>; Thu, 29 May 2014 03:59:30 -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=iD1uH7nz501+LHLxXadR98Ab+RNG17HpiJ8yqAQPdCjU1xg7Mvra4VZKioa4JarOpq VTXU48nC/OGgB2L2cDqFvjjxB5q9iwZ1hVEvw8k0Sor6e7vkQFgsP66SaMiyzd1/gixL 5EM1+iTOKf0l9ulgVo1qOiwqc72LJ/6dzSUWhEjkAyPtjPWCGtMbjvinNODiJaGblP6R gtiu1FsmUvudsvOBq2QBvjik5KqrftltER5f28upLS+JFa9ac99Lb+YI0bnNTukhSTzV ccOMKUvlWEa3UtgCDj4IvZ/CSt+ObrqdTYH0N9uSLe0pSUu1D9lH5n8F+X6QKCAJajfM 6rQw== X-Gm-Message-State: ALoCoQmAhr0etqIkNqX1EGEWfHPAlIUfqOjdVbQllICe/im6v5SLIAuDIWKqJv3EgM8ZjW5xw+jZ X-Received: by 10.58.187.107 with SMTP id fr11mr2718777vec.34.1401361170571; Thu, 29 May 2014 03:59:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.104.49 with SMTP id z46ls492673qge.50.gmail; Thu, 29 May 2014 03:59:30 -0700 (PDT) X-Received: by 10.58.195.202 with SMTP id ig10mr5564329vec.33.1401361170500; Thu, 29 May 2014 03:59:30 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id ol2si165665vcb.88.2014.05.29.03.59.30 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 May 2014 03:59:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id oy12so160313veb.38 for <patchwork-forward@linaro.org>; Thu, 29 May 2014 03:59:30 -0700 (PDT) X-Received: by 10.220.103.141 with SMTP id k13mr5520342vco.25.1401361170174; Thu, 29 May 2014 03:59:30 -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 ib8csp18745vcb; Thu, 29 May 2014 03:59:29 -0700 (PDT) X-Received: by 10.180.78.71 with SMTP id z7mr10740057wiw.14.1401361169187; Thu, 29 May 2014 03:59:29 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id g8si691758wjb.28.2014.05.29.03.59.28 for <patches@linaro.org> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 29 May 2014 03:59:29 -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 <pm215@archaic.org.uk>) id 1Wpy3S-0006gX-DR; Thu, 29 May 2014 11:59:26 +0100 From: Peter Maydell <peter.maydell@linaro.org> To: qefmu-devel@nongnu.org Cc: patches@linaro.org, qemu-trivial@nongnu.org, Jan Kiszka <jan.kiszka@siemens.com> Subject: [PATCH] slirp: Remove unused zero_ethaddr[] variable Date: Thu, 29 May 2014 11:59:26 +0100 Message-Id: <1401361166-25672-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.128.179 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
Applied to -trivial, thanks! /mjt
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 =
The zero_ethaddr[] array is never used; delete it. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> --- 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(-)