Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp832952imd; Fri, 26 Oct 2018 19:01:36 -0700 (PDT) X-Google-Smtp-Source: AJdET5dOx4pzVMF85abg4raRpC1sRO+GJsU5lOpUfdsqBAZqOe61AiT9SKVZjX38pWP3xnEzxnMd X-Received: by 2002:a62:7107:: with SMTP id m7-v6mr6172348pfc.56.1540605696655; Fri, 26 Oct 2018 19:01:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540605696; cv=none; d=google.com; s=arc-20160816; b=ZE5KtCMobq7HC7eonPyQOWiEcQWxHOJKqehPNgEhvW+RhFiOR3OGKT/rUooZliJVn7 KqV9qVW8DItdNSZstDzAGpF8gv330NcSrOizVRYmKBmkDuMp5P11URHArXGy/QfbUi2+ +Sk41i5eHRVQfgYb0iNj5UZR6RU4lnSpmQkV2Lyi1rCTiJmrP0MVW72o2AkfTeTboiFR D55Gy47IZkvg6w5KIhKfndttKs9J/FGeaqHBmAZx2tN2VkxB8dwl52btEV0br+2h6fCm V9UHYnMX2BzPpoE+5GiR0u3ADPw14UdqEf6jpDflRryUnWOgTEUH4BZGGbmoeRTEOTvC esdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=J5RxTErJXoIN4DFbUXbMSG5XxKyOAlaWHaLsxy5wXNA=; b=S72mr+trPpV+dm4gBKWnMDgd4Z+y5LU+oOVVnpfXvsfNU6h3NO7naTn2heBI4sR9Ts zXYsrpd1rC+WjQ8E6VM16LJbgi3YzI5qF4R26mp3PINfc4+Gfp4cbzNGIs+73dHOFm2z RfL6dUHLmUyRINGnRY/dTkn4+G9fvwv+xC9qONyislnfB7P6DMXDz6SSfWK6yFzE8LhZ mspv4BnpyzSPOWRNK6g8CwNsSOhzqPzQzYU0hOBF+VfCQtLqXlPDMxmTbwpodpLAGLXW DEmhiDT7HFffmRr7tbyzZbLodJNffBejQWDolKoaOIJ0SYiSunzw2tBlnkpVyoi4LBdY a85w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=i+xRmGsz; 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=usp.br Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x85-v6si13153431pfk.54.2018.10.26.19.01.16; Fri, 26 Oct 2018 19:01:36 -0700 (PDT) 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=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=i+xRmGsz; 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=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727774AbeJ0KkF (ORCPT + 99 others); Sat, 27 Oct 2018 06:40:05 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:36117 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727659AbeJ0KkE (ORCPT ); Sat, 27 Oct 2018 06:40:04 -0400 Received: by mail-qt1-f194.google.com with SMTP id u34-v6so3425426qth.3 for ; Fri, 26 Oct 2018 19:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp-br.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=J5RxTErJXoIN4DFbUXbMSG5XxKyOAlaWHaLsxy5wXNA=; b=i+xRmGszyHXsGOlwYvMiG4mFJva9OV47BWT/Z+nYhns536kXMs/XgGdbGBHG/S4BxN 8mN8DYXRMSdt18k9VZKU2X66CnIzj4g1QLZKanEEZQQ8K4l+xr95iE2uOn/CcoUsELtp f7SazgtC7jPXVEzlAIbPL9p53IrzqLQ6R065RxSGCEPKqBOBm9z4mTNgaXwPvgDEFD+u 7iB+MJwboM7159+DtOh9T47fyyDeGW2P+PWrQgHm6DnzBTGp22LkCH+wm9T4vbsshU2l MLaTLK40A//QLvOB2e3p95hgTbSePyVBvvc9ChiL3aX79AxY+fPHWi4/MYHky1Bd0jgg kduw== 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:in-reply-to :references; bh=J5RxTErJXoIN4DFbUXbMSG5XxKyOAlaWHaLsxy5wXNA=; b=D9EH23hFNRsl/LAXpZT3syGfWoWJK9+fMCoLyKaFZRYSZnHk/5AwebrOsu5UBaOy3y 8MPPE4g/Lj0qcwc/IP7t9/vauKR64LFLP/37U4oShPYKV/d0Qh7w/K+EMnRa+66kqkV0 MS0prkPa7WzwOkNUS+UWUaPWEorhfpwpCsCjZ/MUEXHj+YBoGojHKSl+LDWJRQMy4H3o /g3F7lytfzzbeXBaxMbfmda3l09i1mtfAicNaU/slSAhOFmN654SGRM4vW/nOw4h40Nk M8QJsTqZxo8rRyCY1J0rHuuBNLdLa1Te0MqpOaA0Ws1nkYzwnYaoVYzXYjIY5dIJSfqD Tdbg== X-Gm-Message-State: AGRZ1gI7tTu5F0NU/4UaDhFGjvJaRl8UvrEN6Lu0XEYqO5gsLIRCB9rN z6QrQKO0U3a8qzFtgr/6xdjQfw== X-Received: by 2002:ac8:5414:: with SMTP id b20-v6mr5489234qtq.144.1540605644110; Fri, 26 Oct 2018 19:00:44 -0700 (PDT) Received: from mango.spo.virtua.com.br ([2804:14c:81:942d::1]) by smtp.gmail.com with ESMTPSA id h67-v6sm8499777qkf.32.2018.10.26.19.00.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Oct 2018 19:00:43 -0700 (PDT) From: Matheus Tavares To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com Subject: [PATCH v2 3/6] staging:iio:ad2s90: Remove always overwritten assignment Date: Fri, 26 Oct 2018 23:00:02 -0300 Message-Id: <20181027020005.3140-4-matheus.bernardino@usp.br> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181027020005.3140-1-matheus.bernardino@usp.br> References: <20181027020005.3140-1-matheus.bernardino@usp.br> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch removes an initial assignment to the variable ret at probe, that was always overwritten. Signed-off-by: Matheus Tavares --- 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 d6a42e3f1bd8..c20d37dc065a 100644 --- a/drivers/staging/iio/resolver/ad2s90.c +++ b/drivers/staging/iio/resolver/ad2s90.c @@ -64,7 +64,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) -- 2.18.0