Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2896755imm; Sun, 17 Jun 2018 06:47:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ5HOQ7iC4NkxDt+x1hx488Q+ojhaBg/v0ChDnSuKRlmtd9cnPT584v313FRpnSPfZ3xYuh X-Received: by 2002:a17:902:b40f:: with SMTP id x15-v6mr10273125plr.270.1529243240857; Sun, 17 Jun 2018 06:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529243240; cv=none; d=google.com; s=arc-20160816; b=BXgFSAsURHPcKgX4AZjotdQ8WO5SFkuhU5lh3EIPQM8vmkB2ba+XHTK3RfLcbqewQh lXCIKmD3C1SOVIz9kbbHACls/y0S0lhfdPpfwl1JCuFPixmP+g8R3yE2QdvUidOLqAPV VJP73p6lAhTdhK2deF1HLFIWZIAxzNrHJEw62jo15z5U0iMfpO85fEwvcn/UB0qrZAAW bhzZv28lumic0ez/m2/vfcRtaTrfp5V5JVVv0YLnpKR/G4IrxzisH/wRgRbAqcnTz7md bB+OySTrpPOHdeYnAzikVvtEDrxuwoxPJ1pJJgnHrCCT+jizU9ijACDHh1XsalZ5+g+Y k7Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=kV7LAchZTKCtBDmZswXqG6DsrMnHBZkABzH0AtnLweU=; b=IYu8InEdR+VYCTDF0AnHURncGvZ+YnbaMLv1wPUtJqm1wOyp2T9vNVWZcSfapfPZ/v YzsXbzCG1HH0MOuvW7b7I75Eb1O8liwKw41LogiyCET/DsmYpmJkk/4VESGEdJUdJ04V iMpnpKUV4ojOZNV2X05R9PmuuFm2znI1x79MJw8cIx/HRVIh8Ot0oSmQ+jFDT9NOrCce Qgfl58UrePL3gxj38dVuAvsGEtF9lWF3eFFIRDphGBNp4rRSL7K4CoKFAsXL9l5qX6Rb 1waINIGzkhcrpDnZA3oj2oNpcD4miFPUHQUuJiSYpvRQy/DN3q9cY4BZrbDzINUBGnWB Uh3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=xLCzOoyz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r63-v6si12455129plb.366.2018.06.17.06.47.06; Sun, 17 Jun 2018 06:47:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=xLCzOoyz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755420AbeFQNqg (ORCPT + 99 others); Sun, 17 Jun 2018 09:46:36 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:47058 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755302AbeFQNqf (ORCPT ); Sun, 17 Jun 2018 09:46:35 -0400 Received: from trochilidae.lan (unknown [37.17.239.3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 4C3A35C00F6; Sun, 17 Jun 2018 15:46:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1529243194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:content-type:content-transfer-encoding: in-reply-to:references; bh=kV7LAchZTKCtBDmZswXqG6DsrMnHBZkABzH0AtnLweU=; b=xLCzOoyzcQBiRrSIe1Ifj44WimroKwGRT1BHhJ+Xg6TqXPaCff7R1iQIK1xa7OXVzu47Ja XHtVfKLWQXicaBdNj07IO4vF11ahcaFrpHXeJnytG0il0HFK+fZssHbHA0VIOCYMOsdOaM RIWnTHnTy+dqBOn/XY7kypz6/QZ5n6o= From: Stefan Agner To: Jaroslav Kysela , Takashi Iwai Cc: Stefan Agner , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: ice1724: remove unused array Date: Sun, 17 Jun 2018 15:46:29 +0200 Message-Id: <20180617134632.1479-1-stefan@agner.ch> X-Mailer: git-send-email 2.17.1 X-Spamd-Result: default: False [-2.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%]; RCPT_COUNT_FIVE(0.00)[5]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MID_CONTAINS_FROM(1.00)[]; ASN(0.00)[asn:13030, ipnet:37.17.238.0/23, country:CH]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes a warning seen with clang: sound/pci/ice1712/prodigy_hifi.c:321:28: warning: variable 'wm_vol' is not needed and will not be emitted [-Wunneeded-internal-declaration] static const unsigned char wm_vol[256] = { ^ Signed-off-by: Stefan Agner --- sound/pci/ice1712/prodigy_hifi.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/sound/pci/ice1712/prodigy_hifi.c b/sound/pci/ice1712/prodigy_hifi.c index d7366ade5a25..c97b5528e4b8 100644 --- a/sound/pci/ice1712/prodigy_hifi.c +++ b/sound/pci/ice1712/prodigy_hifi.c @@ -314,26 +314,7 @@ static struct snd_kcontrol_new prodigy_hd2_controls[] = { /* --------------- */ -/* - * Logarithmic volume values for WM87*6 - * Computed as 20 * Log10(255 / x) - */ -static const unsigned char wm_vol[256] = { - 127, 48, 42, 39, 36, 34, 33, 31, 30, 29, 28, 27, 27, 26, 25, 25, 24, 24, 23, - 23, 22, 22, 21, 21, 21, 20, 20, 20, 19, 19, 19, 18, 18, 18, 18, 17, 17, 17, - 17, 16, 16, 16, 16, 15, 15, 15, 15, 15, 15, 14, 14, 14, 14, 14, 13, 13, 13, - 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 12, 11, 11, 11, 11, 11, 11, 11, 11, - 11, 10, 10, 10, 10, 10, 10, 10, 10, 10, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, - 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0 -}; - -#define WM_VOL_MAX (sizeof(wm_vol) - 1) +#define WM_VOL_MAX 255 #define WM_VOL_MUTE 0x8000 -- 2.17.1