From patchwork Thu Jan 10 10:14:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 155130 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1717405jaa; Thu, 10 Jan 2019 02:14:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN7NJrv5wymXCtYs3HGabI2HkD0Oc30VhhbnyT83NejkIB/qmolIJPd/qoifBEfK3ax1e9Xq X-Received: by 2002:a62:3305:: with SMTP id z5mr9767491pfz.112.1547115253090; Thu, 10 Jan 2019 02:14:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547115253; cv=none; d=google.com; s=arc-20160816; b=rIkE5D8Qj7gGYvKy8vDxDpWyhhwaStKc1jeOO/gQoYAjduhzJu/QNQ0JksZlGuJuD4 qc3KGF1jSx8uMua6ntgCIWGmquHTFtS0F+3wD6ZaCGA3rmQLibavzswi43Q7tVDAG0W6 5c9QXEvtckQrv+uFPO9R2G16gGfPFd9dnRuyixziC+1HoLxO64zRBDM7i+keAx8VG3K1 hLQaUj3KW5ma4GVDENpLHDSTdNCX7h0IMihnHRMGcTZ+IJ7q5Bo7xSTYpf6lT2u2U0lS 4+tpuJF1W0JafvmmOUx59mTeFbTDKG20DtGObhUem/KrX2Dws12muiXwrtwt9Q0olGKw tydg== 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=FtroBEmytKYhrd8Y8AIeWuS6OZ2s0PruL15ldRImQVxmUAtk8E8x1Mbn62iJc9lWxl L19REpnpiKuLZNQxya89z2e/hTpLKWIqk7tAKX1GLch14JmqSONnRgycAu5PJQZGRNYz +/2Z2vMUEUgrzZGELbIsH+fsEXW7KRvZQDX2gM8pzJ88hS/VnsgjlYTAD7zES88Tsy4t +9fuG6Ml5OLydbx8R0aX1LrYU98zVS2n7EchgrdCDdovkksMVw/5llH6WAL96jampwjQ kjlbHjv8zMCX63hWYCS6O0OJDcFUSGGDDZ+yObfxbN3RcKEAwdqQSDRdmefl3Z3nvr5a EY0w== 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-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-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 e189si16962552pfc.202.2019.01.10.02.14.12; Thu, 10 Jan 2019 02:14:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-spi-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-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-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 S1727534AbfAJKOM (ORCPT + 1 other); Thu, 10 Jan 2019 05:14:12 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:42591 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727328AbfAJKOM (ORCPT ); Thu, 10 Jan 2019 05:14:12 -0500 Received: by mail-lf1-f65.google.com with SMTP id l10so7862898lfh.9 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=VNKVyanuio4QmhNjtMGEPR0hacqc5SD9CeOoqoOD9ug7TUAML5dr0NQCdKA+joPcHF t92NVNmG+W4lCtKmjtd9z0BG6+uc7Sc9oxq3TVKkyse10QuA5OJN4P4rDWnCgqK6hNfa Ce2y9c/gLo2s6mJw8Azy7JkfkxP7UK1XVIg1Q/U/6xRIej+80xozTeGlWAGe8+0O9zYL Fnnn4rol2i+jvum1iey4/nCqfP1k0x3arTMbiDrcRSNnKpFmMeVvM1rMzcnZYvq9ksZZ AjqJ2iEXGMwK//zb6p4bwDhB7qsaNYmbbchzRIkuKjxpbP4m4TE9xhFfvrQnKvD+zEhU 9TSw== X-Gm-Message-State: AJcUukcmpRRpjNlfJk4AoNGoXMNV1UyW9c1K4NyGCMesIK+9omcNRfHK Lu5vAcphIU9+EcAAalrhMpR5hQBA+ohpxQ== 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 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@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(-) -- 2.19.2 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);