From patchwork Thu Aug 22 06:25:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 172014 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp449679ily; Wed, 21 Aug 2019 23:28:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAqwZnOGCXDzsIg2gOMB9NzYcpRgzDxFvpSOZbqICHGQD5l/7VhcZoyn/CvaCZgk2KI1Bn X-Received: by 2002:a7b:ce0b:: with SMTP id m11mr4377114wmc.151.1566455314439; Wed, 21 Aug 2019 23:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566455314; cv=none; d=google.com; s=arc-20160816; b=xjzkOydcAhk6ogaIQvBXy6hbOrhbSj/JvydtRqqBZo4eldIUdWern/oPmlhGofgzaX 10uKUFbeawMwAHHINPY9BIWvi1blo2lLTzEvJ9uakjsUFo3HrtjX0cBUvxkTqqYKqaWw fNWhGD54UIEEU65mhOmGl9nID3VT8FtI/xvrTYCS1uuIrOlRCxLIp7TLFH+71qlXggbT 6q9v8uo8mygGu/zAiarUhgpkjPTuq5KhC8hGaZLDJzWu7HaVUIshHUqOVs1ZTwKLVgyt L2O60O/+DHRJFDH+4bDu4JDxOIBUwmGUg4R+uKMkOWmj7gSpBJXaI/q+SPVwPI4V+Jyu EgVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature:dkim-filter :delivered-to:dkim-signature:dkim-filter; bh=LE4PcTPQE++imsOTt2uppoy5VTCbJmcqdJNLg/XKfe0=; b=f/kVSUMVzRCfv0LxVme1QNTVPaFFYdE0v575a6Iw7KgN+K+MfmPFUmKT04Fp0HEelz d1G4eNHuAryV4/GIpJKSKUAm9Q1ysCM+2Z1WUn3rfUILyIpfRd+cctyG1F/z5DF0nHSu 6o750dKaoJdk8VKY5w0J+GIB3w3u9TDvP35HTWSsesL4TwRWzo2hH1VS8X6V1m5cOyKL DDRyxB7togkkJCfXB5l9yvkREyfVsLB37LnBtadlCce0zmau9EPjKTL9BL4CRw1v573e 9UqUNIpzMJPgE4V9ZnNy7m3mvUik7ajt9VsQFQf/u9aLwr64mn592bYoWIRrPVlm8/kp U4zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=RmU84lQR; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b="kl/yOs3Z"; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTPS id a15si18655256wrv.123.2019.08.21.23.28.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Aug 2019 23:28:34 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=RmU84lQR; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b="kl/yOs3Z"; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 73DC115E4; Thu, 22 Aug 2019 08:27:43 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 73DC115E4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1566455313; bh=OUcEGfw7+iAZpulCxlG7yKO8q9T+tffO1mjjOftJId4=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=RmU84lQRYTV/HQH2eV7+djsrkT4LUPWORhMocP+TozvusBTLXSma/h/d4tOYurNRG yjrEVIvF/FmtUmLfmejHDw371P8OrtxZRd8771A02f0IpashVkWBjR00Dex5Y81pkD GcMSELFoT0KMYKKum/EQD3ocgRhZjysa/jlYSCg0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 86E2DF8036D; Thu, 22 Aug 2019 08:27:42 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id D73FFF8036E; Thu, 22 Aug 2019 08:27:37 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 20251F80147 for ; Thu, 22 Aug 2019 08:27:33 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 20251F80147 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="kl/yOs3Z" Received: from localhost.localdomain (unknown [171.61.89.145]) (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 3E911205ED; Thu, 22 Aug 2019 06:27:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566455251; bh=UBiVQJTLUuEREfE4wiyKi70+Ms880WoDypAEyoYBlWU=; h=From:To:Cc:Subject:Date:From; b=kl/yOs3Z+km7m1N2Utj3SrFx56+zrmhukYYNQD9+2MzKTHfIufbxfjlmWegPjsmO1 MmOJ6abKsBqVaUbhVKTuAZ3qH4ZFHNwMDETSrbOWe4P1AHGwoagPDEt7jqffh08qKZ E1MZmMlAFGMFPC5EU0W7UIjzQ0gNop7+v6nF1J9A= From: Vinod Koul To: alsa-devel@alsa-project.org Date: Thu, 22 Aug 2019 11:55:55 +0530 Message-Id: <20190822062555.30216-1-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: Vinod Koul , Sanyog Kale , Stephen Rothwell , Pierre-Louis Bossart , Shreyas NC Subject: [alsa-devel] [PATCH] soundwire: intel: remove unused variables X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Variables 'nval' and 'i' are no longer used sdw_master_read_intel_prop() so remove them. drivers/soundwire/intel.c: In function 'sdw_master_read_intel_prop': drivers/soundwire/intel.c:829:12: warning: unused variable 'i' [-Wunused-variable] int nval, i; ^ drivers/soundwire/intel.c:829:6: warning: unused variable 'nval' [-Wunused-variable] int nval, i; ^~~~ Reported-by: Stephen Rothwell Fixes: 085f4ace103d ("soundwire: intel: read mclk_freq property from firmware") Signed-off-by: Vinod Koul --- drivers/soundwire/intel.c | 1 - 1 file changed, 1 deletion(-) -- 2.20.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index 459cc1e6355d..cad378f741c0 100644 --- a/drivers/soundwire/intel.c +++ b/drivers/soundwire/intel.c @@ -826,7 +826,6 @@ static int sdw_master_read_intel_prop(struct sdw_bus *bus) struct sdw_master_prop *prop = &bus->prop; struct fwnode_handle *link; char name[32]; - int nval, i; /* Find master handle */ snprintf(name, sizeof(name),