Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1747192imu; Thu, 10 Jan 2019 02:16:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN6y7ji1C+GOF1bcJCou1R6I+OzZGJe8wKFZq+GYSBnAGNrfGxSzqq1UtAmnHnWSvd7iXxuW X-Received: by 2002:a17:902:4025:: with SMTP id b34mr9855685pld.181.1547115412486; Thu, 10 Jan 2019 02:16:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547115412; cv=none; d=google.com; s=arc-20160816; b=u73PxijI2mgHWq7qbYNBpg20UgUVITkZ/T2Zp1XLgJOJ5QSQZk9sPny0XKj7Ggttjt Qhf1rEeoWilmVcy3yC1RqI1wPMpcuef6EeTDDFd5RUXnw4GY6ShEI+tt3BkGMpPV6Yxv 0xJSLFUtMbrs2aQPm5+7/G1LrKQW5/PxgXqVUyrUDOp5Z8SB9TRBEeUzRRJbw6AZD9Gn n7ifhfHpg3aqWFut3NE8P1C+X4Zlvmr0HEvjJ08Xr66HBgaMQNCLmEiP0BQSKoaWmaDB rzQa0akj1sM6BuEGVm++ILyLRnmxfI0+C8eAgVWA41Y6cRbC6cDUOvbtkDmQdQtozHLh b/Dg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=LkLvSLTq8CAdy+x2w96r72tpSm8LzzG31Jv3blujkXE=; b=h72AtaEA4WeCWPvZpIA8++R43xfyL3uqLiuOheKmvtDS4Wb8/Metq0lL92AMumwUcV MdFgUK4NNrGVblRiNWkpXEc7/8WroA79HZaCTPGzKopsqjdkq7NLZ95xSHadM4b0r6af kX0TwOxsEvdS8+rWV67r/JjitpvFZMwZo2pSAV1hFCGxKgY77HqIiZd49qLwfsyUG1Sh s0t2N2rUqA6IFt9h2gaKj7t4IoGPetbI7Rse+uB7jnf5gQ/Vf4HAxy/Zup6TqwYfKKIc 9ALr7dRG126N1GdkO9S5SS2sBho1Z2hokfEbsR4Fr2xPOzMWeO3+hjUyRiZ4XfwnaXU6 DRPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aW1GrMh4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si21032654pgi.531.2019.01.10.02.16.36; Thu, 10 Jan 2019 02:16:52 -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=@linaro.org header.s=google header.b=aW1GrMh4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728133AbfAJKOM (ORCPT + 99 others); Thu, 10 Jan 2019 05:14:12 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:33260 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727447AbfAJKOM (ORCPT ); Thu, 10 Jan 2019 05:14:12 -0500 Received: by mail-lf1-f65.google.com with SMTP id i26so7911171lfc.0 for ; Thu, 10 Jan 2019 02:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LkLvSLTq8CAdy+x2w96r72tpSm8LzzG31Jv3blujkXE=; b=aW1GrMh4Xda5D597gqJV8VHOYRLGFbRmtkJJCgfIobJNM8kvw9DM727nCYy4uY5cd0 Z8SPZ1friS3j69o1sK7gaH4JnoPJjo/Gf/Hh1aK2VWv48nXaYSyy8w6Hvj3qkuJev7Gt +H7o6Eim/Wp5mswmBELvu65oxjS73x1UZn568= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LkLvSLTq8CAdy+x2w96r72tpSm8LzzG31Jv3blujkXE=; b=cnrGivq0EcuFTFPOFaI1vTmVW/hxYu9LEBRiiryWNskYUkolk9OTxj/T30DLMt/qnt 4ckOAUBtDnV2E+7psVDwdjWZzKFvi+h4OWQQwI7WtkyuU3eKcNYzyWI0ZVv+fFX7c3zT OEX92ZKFf7RrnxQUtN2TaNXFx3EAQA57lm9ZciJnPdK1bL4olf6w0BpLhoJA3QNZ1XgG zLDlUXv4jKBsLs4MVWtXmriPlCjNxUG0bMcrF1xtxrO8GyeCIX2vySXeoiH2Ls9If7Qd NdSpz80zk8VU458hNwHMKDd7ukIVoaNyzYzlVr32/nWSoA7loAazd4veDDP1siTGMJ+e mfYA== X-Gm-Message-State: AJcUukfuNvJXee5TmVWJj/QEjsC5CpoxieiI2Q+X1SNM3u/LOwhdoVgD AdqRzkqdA1qufYkZGca/Wss4+w== X-Received: by 2002:a19:7dc2:: with SMTP id y185mr5270656lfc.27.1547115250118; Thu, 10 Jan 2019 02:14:10 -0800 (PST) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id k14sm14120820lfc.70.2019.01.10.02.14.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Jan 2019 02:14:09 -0800 (PST) From: Anders Roxell To: broonie@kernel.org Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] spi: dw: fix warning unused variable 'ret' Date: Thu, 10 Jan 2019 11:14:07 +0100 Message-Id: <20190110101407.7583-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 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 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 --- 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.19.2