Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1844185imd; Sun, 4 Nov 2018 10:39:10 -0800 (PST) X-Google-Smtp-Source: AJdET5d+6jy4vPMCbd6w9Kj/WP59O7B8dkkHO36uiqmg6fx3DGJNSPCQGex+9U4PoRWhtxSlDBQ8 X-Received: by 2002:a62:4816:: with SMTP id v22-v6mr10730481pfa.233.1541356750900; Sun, 04 Nov 2018 10:39:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541356750; cv=none; d=google.com; s=arc-20160816; b=yi4zmC2IxR86Odl99sCypveuPdLvO/lDixHUodhUXo1n0KkD84u45IV07h24bOadgN 8nPmYox3/1kzHgJvWurWpIwWcqehuf2siXOyLbJPQBFM5T7wjbr6D/3zhfiwkqGqBtDh i96eiSGpog1vtk6Yiw7uDI6oCrAcW1Hb5VUTMsbCRQHSQnVP3Zdp32lsxlg8odIBLCxa qAiIq7nDp/af5jGqNq5C7dJD5yEP8CLJY3Skkx2H133eFvSBrIePiYgHQBKR+tg/kPoh yeFYZmfqxQ6VvaR4NE6ovDdQ94xCEmCYu35wZkUTdsyBvsGJzL1IggvSynuxUsmxcnsH TALw== 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:subject:cc:to:from:date :dkim-signature; bh=CN3/iJWpxjmrDNwiU0UIyZKBottiWM0A9KyUBUKXCgU=; b=CHbDGzONqTVJD7UXbCSNw0GVc52nMnA7Z2KeDfAAaghfZfS3OCbopFv4CaaZwIQ8QC TFnHK9ZYw+YYvtb4wtno+me2zOUDSMh4bWjXs/bJYRyGBoS3Ro/hZ4qWrfrPxRgWXM8N J1bU1OleBVT7GRI00VSz+Du9aY52G1eNxUBUqO8oCioMauapK6kOfNBgUj5JTek1nEqH e6/af9oEBKut6oO5ADMfxeia/wcTjDjNQHrQ/ocjqdnSPM6Tp3VRcKoXRB1TMXogDNoq Jphr61OKF/pTX/Jlwm/rpi0c+4+bC7tU6Kt7cK3IIByNJ5TGBhXQGDCORhb8VgOAhfi/ QlIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QrIsEDeg; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g15-v6si39909457pgh.33.2018.11.04.10.38.55; Sun, 04 Nov 2018 10:39:10 -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=@kernel.org header.s=default header.b=QrIsEDeg; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731987AbeKEBzg (ORCPT + 99 others); Sun, 4 Nov 2018 20:55:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:36322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730885AbeKEBzg (ORCPT ); Sun, 4 Nov 2018 20:55:36 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (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 825AD2081D; Sun, 4 Nov 2018 16:40:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541349603; bh=swtRxHhOWoMa0QdSwez6PwgQcT4c5I7WzmVvb2eGmYs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QrIsEDegWivTXWTALPg1NIqr/eGzYCGXDkkCFm0Ijis9rl3w9VoFvVu1ChZcUru3S NTENiB/0ZRCPDlLOl+q80FE+66F83hVJSXDzL1dI6Ro51kQJxHEsooMbOEIXE0Dclm 3sVHECG3An8MQ3rKOp/FQH/xZViWp4bIq4p5IRLI= Date: Sun, 4 Nov 2018 16:39:58 +0000 From: Jonathan Cameron To: Matheus Tavares Cc: Lars-Peter Clausen , Michael Hennerich , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com Subject: Re: [PATCH v3 3/6] staging:iio:ad2s90: Remove always overwritten assignment Message-ID: <20181104163958.1cb8f615@archlinux> In-Reply-To: <20181103224948.31014-4-matheus.bernardino@usp.br> References: <20181103224948.31014-1-matheus.bernardino@usp.br> <20181103224948.31014-4-matheus.bernardino@usp.br> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 3 Nov 2018 19:49:45 -0300 Matheus Tavares wrote: > This patch removes an initial assignment to the variable ret at probe, > that was always overwritten. > > Signed-off-by: Matheus Tavares Applied to the togreg branch of iio.git and pushed out as testing to see if we are both wrong and there is something wrong with it that build tests and static analysers can find! Thanks, Jonathan > --- > drivers/staging/iio/resolver/ad2s90.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/iio/resolver/ad2s90.c b/drivers/staging/iio/resolver/ad2s90.c > index 4908c8a95fad..54ad85bd9dc6 100644 > --- a/drivers/staging/iio/resolver/ad2s90.c > +++ b/drivers/staging/iio/resolver/ad2s90.c > @@ -62,7 +62,7 @@ static int ad2s90_probe(struct spi_device *spi) > { > struct iio_dev *indio_dev; > struct ad2s90_state *st; > - int ret = 0; > + int ret; > > indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); > if (!indio_dev)