Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp693217imm; Wed, 1 Aug 2018 03:50:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdmDPSsntTDqxxiSt0m4sTfKDsjRy5CuEk4WDBSN5lssB+uGDOdbVZIue9sGrSfdPIr1JDm X-Received: by 2002:a62:6cc7:: with SMTP id h190-v6mr26526697pfc.113.1533120630439; Wed, 01 Aug 2018 03:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533120630; cv=none; d=google.com; s=arc-20160816; b=uXGS/5pLIF2GSXNvQQmTccwZWBu+SARmSugVVT/H8ocPNF79P0D3G9sUS11NuskCOw PcS9VF1Betch7cCGddirJw5meMMk3fOAJcYWW6E8+cCi+EQoQgBhAP1TmYuv+In+oBpH UcDCXD1dA8+gILbRFGAQJn69vc1thUjA6lj25kUKIGZ8UokdosAnpCnQbztiHwD4TtcO PfWZ/KllGt0AMzdWqUgm7OtGcXhdKTrTPEm7+28Pg+3PdeLJ5AWR7P5Hx0Ny9ybtSJn4 owM9hs5pXKTBvKCafxOWSyODfwTD5a+zx+Lh13fGfzivyt0a4WvY2nwzBOgnFPA2aICl mxng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=3Jn4t/Ppr5bRQaKsgojuMK37nOLoMxT+iECskiYrf6U=; b=PP6KPd1Mz5a5aA61Cjx0uhyRUyoB/8tCUSwAJ9t1tUTU4mxyt7kxYOqvNA6hBm0nwV ozUcdh2xA0N4oT4Ryz2dXRCoY5pM6R8T/kMHEjhfnvkfLcIBSR+cYwh5Pma+4v/+qhgx qxuJdXk9l6RsbLmuD9da1DoPeKA1Ll3tvoWPi5k4z/I6sdrQExSIuei+4YXSpzayNde5 Hfuuj/Z8lzAHY5RxNv+Oi+FA23/j7oY17Hes5WiK2zB1u7OGrSSnbbRLLJehDgwZLZkQ cXAX7008mTXQyVpSOJhoor4s6TodgeBjSpiKmMbe+5eccU4XgsCSitwt9QstAtyHr0kJ 6k8g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 203-v6si17306293pgh.46.2018.08.01.03.50.14; Wed, 01 Aug 2018 03:50:30 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387829AbeHAMdC (ORCPT + 99 others); Wed, 1 Aug 2018 08:33:02 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:39184 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387597AbeHAMdB (ORCPT ); Wed, 1 Aug 2018 08:33:01 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fkofR-0006WU-GW; Wed, 01 Aug 2018 10:47:45 +0000 From: Colin King To: Jaroslav Kysela , Takashi Iwai , Jaya Kumar , Liam Girdwood , Mark Brown , Olivier Moysan , Arnaud Pouliquen , Maxime Coquelin , Alexandre Torgue , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/9] ALSA: sonicvibes: remove redundant pointer 'dir' Date: Wed, 1 Aug 2018 11:47:38 +0100 Message-Id: <20180801104742.4328-6-colin.king@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180801104742.4328-1-colin.king@canonical.com> References: <20180801104742.4328-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Pointer 'dir' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'dir' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- sound/pci/sonicvibes.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index 7fbdb703bfcd..7218f38b59db 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c @@ -1433,14 +1433,12 @@ static int snd_sonicvibes_midi(struct sonicvibes *sonic, { struct snd_mpu401 * mpu = rmidi->private_data; struct snd_card *card = sonic->card; - struct snd_rawmidi_str *dir; unsigned int idx; int err; mpu->private_data = sonic; mpu->open_input = snd_sonicvibes_midi_input_open; mpu->close_input = snd_sonicvibes_midi_input_close; - dir = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; for (idx = 0; idx < ARRAY_SIZE(snd_sonicvibes_midi_controls); idx++) if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_sonicvibes_midi_controls[idx], sonic))) < 0) return err; -- 2.17.1