Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1845517imu; Thu, 10 Jan 2019 04:07:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN4sRKYsduKeYFjA7fZnRWTQaWatOWR8GVzQw6dBiDSdgSik0QrYm3+F2+pGqfjdIwx+SxAF X-Received: by 2002:a17:902:7044:: with SMTP id h4mr9975754plt.35.1547122050124; Thu, 10 Jan 2019 04:07:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547122050; cv=none; d=google.com; s=arc-20160816; b=PijwssT1tiE1VOq8DOfgPk/1JvWnpVt1Ba+vEXk0yqGfrn5rzVhII8kOJ0fna7TU45 oPGmmGuLOVItJFuB4PGKGvN0MNzzsrVmIGqhMpVzZ+MU88ymS3q6wd2UPrASPtczCs6O 8EHcVQfEzcaAiLKIgRrrdIIUaj9RumiV1yKt4i/rheAmqd9vKkNn6HSnXQX6jKSx+Hag e3+sIFVH3VDJaRBkPvk1GcvVNsJy4cViX5Aq331P3WEkORY2Fi+UgC6R5ubRvjl8pVdc dsF1uodgAOO898FzdtGda6JUOxxA9Nngyltihw6BGGRGTGBKuDGj7IT1vgxqXGE2IdvL owug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=LoPgMtFHKLxYovTFVdiOStzQd0dkXxGJnaudw4ol18I=; b=PtiGQcAYGMYPll+EnEzH6NIsEQkaEIZMhYda1tJHfisgboirVDTYkBx7PRmc6+C/gG lSHWe5aNofwH+PfdhyRjnSRznkuZ+djUoWl8H0F5H2VJH25wulUx16kDZBaAptWfsyVp jqDtQjf20292LO6D7zOoqXqlAahUB8ri3wwxv4EfM7W3Q61zd4Bp3Kcz4jHFiJdckI5R UmBD13OV2ZDSWDVjpC13XPnav1Qt2MXPPoYbJiJkYhnPjl06AkG+jNA3eLvMwI9nfxqC 33i2poUR5loqLMj0pZ7OZ6J2wjrt9bgqpEVp1fQ3BrNXm2uLrPjCfvZgpaK8xZD9KZQv EK6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=gKbpB2Iu; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si5060479pll.349.2019.01.10.04.07.14; Thu, 10 Jan 2019 04:07:30 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=gKbpB2Iu; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727790AbfAJLym (ORCPT + 99 others); Thu, 10 Jan 2019 06:54:42 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:60936 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727435AbfAJLym (ORCPT ); Thu, 10 Jan 2019 06:54:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=LoPgMtFHKLxYovTFVdiOStzQd0dkXxGJnaudw4ol18I=; b=gKbpB2IuYSG+ t6S7r2glN+j95+Y3ci4WBD/BF5A0i+xqvlAlAN5ytDjsa42iSyY6YjTcTp4yMUIdp5euAKV8OUajb uPcpnDDIAlWEFlTqPY6lJP8x1lR0+zA9cpXnpFWTS6FbnRjPsvurTakmHP1dVibrZCWNMbqoE5icS afe3o=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1ghYux-0003Pq-QX; Thu, 10 Jan 2019 11:54:35 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 6EE0F1127052; Thu, 10 Jan 2019 11:54:35 +0000 (GMT) From: Mark Brown To: Anders Roxell Cc: Stephen Rothwell , Mark Brown , broonie@kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: Applied "spi: dw: fix warning unused variable 'ret'" to the spi tree In-Reply-To: <20190110101407.7583-1-anders.roxell@linaro.org> X-Patchwork-Hint: ignore Message-Id: <20190110115435.6EE0F1127052@debutante.sirena.org.uk> Date: Thu, 10 Jan 2019 11:54:35 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: dw: fix warning unused variable 'ret' has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 4f0a0cd52d6c812fbf737e436b18f04eac2e312e Mon Sep 17 00:00:00 2001 From: Anders Roxell Date: Thu, 10 Jan 2019 11:14:07 +0100 Subject: [PATCH] spi: dw: fix warning unused variable 'ret' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When CONFIG_SPI_DESIGNWARE are enabled we see the unused variable warning in dw_spi_setup. ../drivers/spi/spi-dw.c: In function ‘dw_spi_setup’: ../drivers/spi/spi-dw.c:400:6: warning: unused variable ‘ret’ [-Wunused-variable] int ret; ^~~ Remove the unused varable. Fixes: 9400c41e77b8 ("spi: dw: Convert to use CS GPIO descriptors") Reported-by: Stephen Rothwell Signed-off-by: Anders Roxell Signed-off-by: Mark Brown --- drivers/spi/spi-dw.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c index f54b498001a9..7092e58add2c 100644 --- a/drivers/spi/spi-dw.c +++ b/drivers/spi/spi-dw.c @@ -397,7 +397,6 @@ static int dw_spi_setup(struct spi_device *spi) { struct dw_spi_chip *chip_info = NULL; struct chip_data *chip; - int ret; /* Only alloc on first setup */ chip = spi_get_ctldata(spi); -- 2.20.1