From patchwork Tue Jun 10 16:08:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 31691 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1254E20675 for ; Tue, 10 Jun 2014 17:29:13 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id i8sf7049553qcq.4 for ; Tue, 10 Jun 2014 10:29:13 -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:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=yEU/5YrlC/0gk7QSt80IDt42px7hnqJ2yHnJmEe0heU=; b=NqfJY54g3d7Q2togC6WL4l7NhuacYXWKJWlQbbQIQAafAm8BvgDvr+c7SpGJF4mDmB Y0RyxicPoTBMa+1GkbyhpJ1rpMdO0HoqiC+raITWim5WdFCU9Wn/SoEJHWBk+/weyEUd 3iRKG3F6HeELzDBiGVh6BeN5BZgN+JMfjnw5qLcpZ9PMrfbfgiGVu77f5KIvq0KyJBST 51NDSVBYfsKUlsnZn+S4izZ933X2yVBR7kbOL1qcsrbKjZLmB+8vYudtvwtMiJ4MIIPx +yJxDbY/x1V8+1tBKEBlUAENT6e5OOfhWMzXWmnWJGVXiSe2OMYCS31lmPg8TyDOsQEW no/w== X-Gm-Message-State: ALoCoQm1xkweCEVIxNYtgIF1hgFMymRPhbagI/da/ly4jh9WTJE2tQpxUKrqIEQlZGwOUBso5OK5 X-Received: by 10.236.78.41 with SMTP id f29mr5199669yhe.52.1402421353864; Tue, 10 Jun 2014 10:29:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.104.49 with SMTP id z46ls2296668qge.50.gmail; Tue, 10 Jun 2014 10:29:13 -0700 (PDT) X-Received: by 10.52.121.19 with SMTP id lg19mr14246470vdb.54.1402421353706; Tue, 10 Jun 2014 10:29:13 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id iy17si858852vec.31.2014.06.10.10.29.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 10:29:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.181 as permitted sender) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id il7so592701vcb.40 for ; Tue, 10 Jun 2014 10:29:13 -0700 (PDT) X-Received: by 10.52.189.161 with SMTP id gj1mr11508514vdc.2.1402421353631; Tue, 10 Jun 2014 10:29:13 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp242579vcb; Tue, 10 Jun 2014 10:29:13 -0700 (PDT) X-Received: by 10.140.109.201 with SMTP id l67mr42152266qgf.72.1402421352946; Tue, 10 Jun 2014 10:29:12 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q8si28452314qai.25.2014.06.10.10.29.12 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Jun 2014 10:29:12 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:41482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuPrE-0001aY-Gy for patch@linaro.org; Tue, 10 Jun 2014 13:29:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuPq7-0008VZ-Hm for qemu-devel@nongnu.org; Tue, 10 Jun 2014 13:28:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuPpz-0000Ry-9P for qemu-devel@nongnu.org; Tue, 10 Jun 2014 13:28:03 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:37596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuPpy-0000Re-PI; Tue, 10 Jun 2014 13:27:54 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 986F4412DA; Tue, 10 Jun 2014 21:27:53 +0400 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id 1D0846AC; Tue, 10 Jun 2014 20:08:48 +0400 (MSK) Received: (nullmailer pid 13306 invoked by uid 1000); Tue, 10 Jun 2014 16:08:47 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Tue, 10 Jun 2014 20:08:26 +0400 Message-Id: <1402416523-13212-9-git-send-email-mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1402416523-13212-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1402416523-13212-1-git-send-email-mjt@msgid.tls.msk.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Peter Maydell , Michael Tokarev Subject: [Qemu-devel] [PULL 08/25] hw/sd/sd.c: Drop unused sd_acmd_type[] array X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mjt@tls.msk.ru 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.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Peter Maydell Drop the sd_acmd_type[] array: it is never used. (The equivalent sd_cmd_type[] array for normal commands is used to identify those commands whose argument includes the card address in the top 16 bits; but for app commands the card address is passed with the APP_CMD prefix, not with the argument to the app command itself.) Signed-off-by: Peter Maydell Reviewed-by: Peter Crosthwaite Signed-off-by: Michael Tokarev --- hw/sd/sd.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 4502ad1..5efe8c1 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -151,17 +151,6 @@ static const sd_cmd_type_t sd_cmd_type[64] = { sd_adtc, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, }; -static const sd_cmd_type_t sd_acmd_type[64] = { - sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_ac, sd_none, - sd_none, sd_none, sd_none, sd_none, sd_none, sd_adtc, sd_none, sd_none, - sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_adtc, sd_ac, - sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, - sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, - sd_none, sd_bcr, sd_ac, sd_none, sd_none, sd_none, sd_none, sd_none, - sd_none, sd_none, sd_none, sd_adtc, sd_none, sd_none, sd_none, sd_none, - sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, -}; - static const int sd_cmd_class[64] = { 0, 0, 0, 0, 0, 9, 10, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 6, 6, 6, 6,