Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp693382imm; Wed, 1 Aug 2018 03:50:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeIFRvaP8Y1CaCSngU0SRG7r9gw1SVM8XfZQ9v5pPs8UcMuGwy1T3LWqysycyYT/JPI9IFv X-Received: by 2002:a62:3184:: with SMTP id x126-v6mr26403465pfx.49.1533120641271; Wed, 01 Aug 2018 03:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533120641; cv=none; d=google.com; s=arc-20160816; b=HoZE6s16rG8rMr0QMAaUYhEFAWlms1m7wFijKPyqyggJk3imnkqARiKCumYce5EaWG Jhb1SvFEs+9QNv4vxdSHjADEskxNMAPVhayQQ/y7FBl1uZSDkJuEWbGTj3ABa7nbTqqI rDoOgQuHXbu1qejCxI+vdEiOayCeUNWIgX+8ZBs/NrSOCV9CiTaMAgczyJ2wTLzxve8Z bnw+/gNJNcsJpT9YHeeoKKWyvat8UKzo2EdUNrQeEdGMgk5hfYGzI9PkusAlclKPV7v2 p/BWm4fJjjgZ4tGmcgog2GKob3UetZu5G7+XF3hyAb9cfp7Dp0P5ZWDLUhermlfb+Vo1 +now== 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=+B5JA/XX60oCLGVwfCp62TeNF4ophSj/eupTkRhDWSs=; b=Wse9AL0pOKDII2rTbR2P7OkD3FVYrTp2MQA35i792DcN3SM52+/X0oqd18X0fs+2ae 6n4uXQb9MzeNvIuuSac+7tImD34Z4uqM26PEhex9C2NQOjlkD7muYI0h+4bwTaBcqASf fDXvqfxbSerVq4nfK719ps0Fpiqnx1R48K0qqfAbPKW2bD+XmzrnAebSlbph5IrKzrdm tQ9yEZSSXat/wEEkp74mVDvcnoBcFJMhzd3BgMObxUAPJo7Xs+YbBrqlWKD9+MdXphix V3W/AC+MDr0xszX8Z9DdG7+BL68rR5Tz4aRZNMPOSTTZ815f82ZMF9fF2sQYkn3PXh80 8u2Q== 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 72-v6si4891002pfv.131.2018.08.01.03.50.24; Wed, 01 Aug 2018 03:50:41 -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 S2387668AbeHAMdB (ORCPT + 99 others); Wed, 1 Aug 2018 08:33:01 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:39182 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387581AbeHAMdB (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 1fkofP-0006WB-Cm; Wed, 01 Aug 2018 10:47:43 +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 1/9] ALSA: asihpi: remove redundant variable max_streams Date: Wed, 1 Aug 2018 11:47:34 +0100 Message-Id: <20180801104742.4328-2-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 Variable max_streams is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'max_streams' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- sound/pci/asihpi/hpi6205.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sound/pci/asihpi/hpi6205.c b/sound/pci/asihpi/hpi6205.c index 8d5abfa4e24b..2864698436a5 100644 --- a/sound/pci/asihpi/hpi6205.c +++ b/sound/pci/asihpi/hpi6205.c @@ -635,7 +635,6 @@ static u16 create_adapter_obj(struct hpi_adapter_obj *pao, { struct hpi_message hm; struct hpi_response hr; - u32 max_streams; HPI_DEBUG_LOG(VERBOSE, "init ADAPTER_GET_INFO\n"); memset(&hm, 0, sizeof(hm)); @@ -660,10 +659,6 @@ static u16 create_adapter_obj(struct hpi_adapter_obj *pao, pao->type = hr.u.ax.info.adapter_type; pao->index = hr.u.ax.info.adapter_index; - max_streams = - hr.u.ax.info.num_outstreams + - hr.u.ax.info.num_instreams; - HPI_DEBUG_LOG(VERBOSE, "got adapter info type %x index %d serial %d\n", hr.u.ax.info.adapter_type, hr.u.ax.info.adapter_index, -- 2.17.1