Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4262521yba; Wed, 17 Apr 2019 07:59:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyduaVwUYqYOTNTZINhjMUJZT3YZgYMy+nTi0/HZlqPAGrurZSWQi/1jgUhqCnhFaEOy6Ck X-Received: by 2002:a62:ae13:: with SMTP id q19mr90658390pff.152.1555513150637; Wed, 17 Apr 2019 07:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555513150; cv=none; d=google.com; s=arc-20160816; b=Ua7gbOD8JSdho2qvVkF/Id81uTPP/lpTXkV4ec5NpSAxSGcCCyoBydkQEOdVIBS05o KvPxVEorvn2jMPfZYc6rsggv6V4UtHUywcAoY9fJnCc7BCbWfu8WHJ0TtwHZEFZbqTW3 POxm+uGnXtUlZhBDH/bnvSBeyzGHxlsD1kl7kNVqN+txH1JQWjJs+qFHDogWqBY3caCp VgHZqmIowaNwMfP07T8f5W6x0UrDN2zzknt93wXmfPh88x4QhEx3SWeX7Md4UNCrZ76r n3iIcFMX354U4Sax+QE4vjLFAO7I94tPKAoQWVhR8ZXxEqYuBRCkABVyPd1zsWbXIr4x rFig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=1kDAwoxjCxK4P+SWPtRSZg/EjX+zpOS6GYgGdsCSBEY=; b=YsfqTHEQAxyNZQaCbp+fUUJ5L/s9OiezV0jv/o1dLETnYqWbHxghtQVQox4rwoZFwE hHHAD1amQGGPh4TJQSstxxDlT+vC2f69LIIVAZD2TCaJ0imdqC6Y3yeSrNZ0XcVWEVtk shjXWfjBMrcUsz5bkHlsRs7Ftw/K7vNygjQWNjFjIyPsyfMG8OVRTvSdJsgzNqQW7dH3 F5vDtw/C/vrE/a44ZWpNs/UEBiREgxE2JxB3jrAEvUcCd0t07f4jC7VkskYgWxiSjGL+ KigZ1g6yD7OdZ83pwkPv/1ESwue+JSEgQQP2kG9KNT0Qt4NVQd3xasRf931hwqX2t1T/ Tu2Q== ARC-Authentication-Results: i=1; mx.google.com; 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 j65si15444608plb.159.2019.04.17.07.58.55; Wed, 17 Apr 2019 07:59:10 -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; 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 S1732689AbfDQO57 (ORCPT + 99 others); Wed, 17 Apr 2019 10:57:59 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:58156 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732679AbfDQO57 (ORCPT ); Wed, 17 Apr 2019 10:57:59 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2CB14854AF18FB4DA879; Wed, 17 Apr 2019 22:57:55 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.408.0; Wed, 17 Apr 2019 22:57:48 +0800 From: Yue Haibing To: , , , , , CC: , , , YueHaibing Subject: [PATCH -next] ALSA: ps3: Remove set but not used variables 'start_vaddr' and 'pcm_index' Date: Wed, 17 Apr 2019 22:57:22 +0800 Message-ID: <20190417145722.20448-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warnings: sound/ppc/snd_ps3.c: In function 'snd_ps3_program_dma': sound/ppc/snd_ps3.c:236:8: warning: variable 'start_vaddr' set but not used [-Wunused-but-set-variable] sound/ppc/snd_ps3.c: In function 'snd_ps3_pcm_open': sound/ppc/snd_ps3.c:529:6: warning: variable 'pcm_index' set but not used [-Wunused-but-set-variable] They are never used and can be removed. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/ppc/snd_ps3.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sound/ppc/snd_ps3.c b/sound/ppc/snd_ps3.c index 521236e..f77a0d5 100644 --- a/sound/ppc/snd_ps3.c +++ b/sound/ppc/snd_ps3.c @@ -233,7 +233,6 @@ static int snd_ps3_program_dma(struct snd_ps3_card_info *card, int fill_stages, dma_ch, stage; enum snd_ps3_ch ch; uint32_t ch0_kick_event = 0; /* initialize to mute gcc */ - void *start_vaddr; unsigned long irqsave; int silent = 0; @@ -257,7 +256,6 @@ static int snd_ps3_program_dma(struct snd_ps3_card_info *card, fill_stages = 4; spin_lock_irqsave(&card->dma_lock, irqsave); for (ch = 0; ch < 2; ch++) { - start_vaddr = card->dma_next_transfer_vaddr[0]; for (stage = 0; stage < fill_stages; stage++) { dma_ch = stage * 2 + ch; if (silent) @@ -526,9 +524,7 @@ static int snd_ps3_pcm_open(struct snd_pcm_substream *substream) { struct snd_pcm_runtime *runtime = substream->runtime; struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream); - int pcm_index; - pcm_index = substream->pcm->device; /* to retrieve substream/runtime in interrupt handler */ card->substream = substream; -- 2.7.4