Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1591680ybv; Thu, 20 Feb 2020 23:54:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzq+9th0++CoFQOIO4ZOVJuCey58mP0zyTQE1VZdszi7j/PY/3EPiYe7LgyxJJvLYm69kB4 X-Received: by 2002:a9d:4e99:: with SMTP id v25mr28004218otk.363.1582271646492; Thu, 20 Feb 2020 23:54:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582271646; cv=none; d=google.com; s=arc-20160816; b=klDxEOzNV/kWojkIQta+nSvIOAe/ssasAsugu9mOzayJZ97RQOWcjMow7+CszRFXli PskofMxzO/2BRkFDZsplN5W8vMIichHSMMRD1QCuxDIY8HT36RzLUWFRahjv+x5PEwgG 1nFYMZrROwK3U8YJLIT5T9bPl/tu7EiOFP64HygUGonZKaftyjL9jQCxbMaPfMERfPfY qmXE1I5XOS9UxWuU+bsUTimBPCgIOn/mSAG7pKP4X3MYBGVUgPjUJN10ui1bWi/xUWHZ pZWVey1IE47KioKvp2R9MXr5LiGbyLiy4Dr0rc8o6c/YQFOky+jSiVE+319oT+8I5R0b 4d8g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AeIf4RCKM9W7gSNO8QcMpmmdzcVGvJgki2VS7HlAkCI=; b=jM1uOgIOlu9CC0nx3igvWj6Bwd366ebE5m/7sxIKbURwAP7p0NJNuqL0vlqv+uctLT wQmPVYATvVFCiYGpj6DQmUZdN7YQy09k+kwwG1+/jkC6GJzk3F7RoR+/F7sTxKKGh1XY YMFGS+Juz0cuOaG9mqNA7prsqFzK1ON0ChlgjfwOuWJrXBCbDjcBCC1sdiIUv2VBWRYb kV/UlAKdNsCLpr8AkhFFOKcJfvI2OwxDTKVrAXH9vmLJFS7Eoct826AiJoO3l24N/EPC XIRBOkKWqEnU0TsoFHr44vm7WJbEWxrR86vmFcKI28nCzESG+7hVu2orIOO+DdpbEW8w Fhcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=thU5nkE3; 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 m82si418925oig.129.2020.02.20.23.53.54; Thu, 20 Feb 2020 23:54:06 -0800 (PST) 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=@kernel.org header.s=default header.b=thU5nkE3; 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 S1730168AbgBUHxw (ORCPT + 99 others); Fri, 21 Feb 2020 02:53:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:52276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729831AbgBUHxv (ORCPT ); Fri, 21 Feb 2020 02:53:51 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 74C2E222C4; Fri, 21 Feb 2020 07:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582271630; bh=Blrkqpo0ttDNFxksJ/K85sjcbAzpjsltlkyUQBX/ffY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=thU5nkE3TrWsnaCISU6jCbroDK2NOVs6ni/SyUKS4sO7i0mUKYwlBC701jhrXVMXt cLZaR+28mAVpyfeAaiYVFgMCsgldv7zbSU0vRmRF6lTMHhCmWXUfpegGPCWiM/O96i 4VD/FRGUouNl2TVwMxUAQPTRb7yzn+xAv68q3dQo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai , Sasha Levin Subject: [PATCH 5.5 201/399] ALSA: sh: Fix unused variable warnings Date: Fri, 21 Feb 2020 08:38:46 +0100 Message-Id: <20200221072422.367785032@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072402.315346745@linuxfoundation.org> References: <20200221072402.315346745@linuxfoundation.org> User-Agent: quilt/0.66 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: Takashi Iwai [ Upstream commit 5da116f164ce265e397b8f59af5c39e4a61d61a5 ] Remove unused variables that are left over after the conversion of new PCM ops: sound/sh/sh_dac_audio.c:166:26: warning: unused variable 'runtime' sound/sh/sh_dac_audio.c:186:26: warning: unused variable 'runtime' sound/sh/sh_dac_audio.c:205:26: warning: unused variable 'runtime' Fixes: 1cc2f8ba0b3e ("ALSA: sh: Convert to the new PCM ops") Link: https://lore.kernel.org/r/20200104110057.13875-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/sh/sh_dac_audio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/sh/sh_dac_audio.c b/sound/sh/sh_dac_audio.c index f9e36abc98ac7..725992937e8f1 100644 --- a/sound/sh/sh_dac_audio.c +++ b/sound/sh/sh_dac_audio.c @@ -175,7 +175,6 @@ static int snd_sh_dac_pcm_copy(struct snd_pcm_substream *substream, { /* channel is not used (interleaved data) */ struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); - struct snd_pcm_runtime *runtime = substream->runtime; if (copy_from_user_toio(chip->data_buffer + pos, src, count)) return -EFAULT; @@ -195,7 +194,6 @@ static int snd_sh_dac_pcm_copy_kernel(struct snd_pcm_substream *substream, { /* channel is not used (interleaved data) */ struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); - struct snd_pcm_runtime *runtime = substream->runtime; memcpy_toio(chip->data_buffer + pos, src, count); chip->buffer_end = chip->data_buffer + pos + count; @@ -214,7 +212,6 @@ static int snd_sh_dac_pcm_silence(struct snd_pcm_substream *substream, { /* channel is not used (interleaved data) */ struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); - struct snd_pcm_runtime *runtime = substream->runtime; memset_io(chip->data_buffer + pos, 0, count); chip->buffer_end = chip->data_buffer + pos + count; -- 2.20.1