Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp165909ima; Thu, 25 Oct 2018 17:46:21 -0700 (PDT) X-Google-Smtp-Source: AJdET5cYMn5DzQtFSFVtZeVGpKUEQ6Oivh7VNVcPPVvWoTFPmAcofLzzK9jTEFgEDxrvDp8h78qP X-Received: by 2002:a63:a16:: with SMTP id 22mr1084944pgk.318.1540514781459; Thu, 25 Oct 2018 17:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540514781; cv=none; d=google.com; s=arc-20160816; b=pQB23Q3HLa0nxcBesKfW8G8bOHR3NJPMzHb2C00mRqCfr3bu9o5q3YORQH+mjXffyC iqrZQwvGlYNy7hGhQVYi3/bygK4zZamNtPhhr1Svm0JAZ7VC7Zg/fBWK8Ck9PAHD2QJl 8BfnQp4E4OX3k6+odWaPKtDZy0in87+qfxBAVCUxlKqrEe6KWDmzp0ORTjSU9kqQrpZV +08j1ZU+ALMQYlKrLZXuwcBTp4SR8U4glxkoJQVWKxztgkxwMFOaN5sMXH8yyui0HJ/4 g1dkXYXG35L+nIxilmIi1KBoH9ioNhKC8+wtFEs+w3QOm/PXO5OnOFNTtBQuuLBKjDux xlng== 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=ABACF1U8QAXCrAQftd8C6HIUrdOQfCks5QA0Iz1VKfH35A654rAbYwTLeZVaBC80ig F5T8svkHAZLgT+e8Ev3f9LqezT+dWsR296jNpTnGWq0WbeaBxcR3fFq01VeI0ledx2Xm NJSt5sF8AqNo7aa4Xb6eOZbDlt4D3/huVckV1nRNp63tDGjw/u5kE6Db3asfAP0NhVPZ dh9/KpVIgHa1vhffZkFPYYYQp/0HggskikjeD8RvN+5745qFFwpOaSkyO/rMOkWUwCJ3 0DdShyJZS3xslu8lelZFv6vzb3OGkYlfpV4D7qaKss5ZVnFbF+/8tLq+KjMoRoBAYV05 CUMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=IfrNsM4A; 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 s1-v6si8772063plr.141.2018.10.25.17.46.05; Thu, 25 Oct 2018 17:46:21 -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=IfrNsM4A; 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 S1726815AbeJZJUY (ORCPT + 99 others); Fri, 26 Oct 2018 05:20:24 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:41290 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726556AbeJZJUX (ORCPT ); Fri, 26 Oct 2018 05:20:23 -0400 Received: by mail-qt1-f195.google.com with SMTP id l41-v6so12182218qtl.8 for ; Thu, 25 Oct 2018 17:45:33 -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=IfrNsM4AxhSnWDdkSFRcz+w1o9OyzWXIeRS2LPgnU7cZLE9hG5iC0jvLMFjgMBGhn8 0TbvVqWOYBEDT2nlu79IZr00SAKUIWO5JetEbgEDG4Si/oWDsZQa7+iLrNEtZ6zFpYac b7AntHRcyWJ3PVU0nGXAj8UwPUljobOHT81AOj95nI9WE52hlHVkmTWL/mVdq9gypnk/ bEtiIGGy2aOd7Dg+heGWJx8Fv/7zGefZatjN1VZ973bxIHVE1LsqipFHBHJiTdxV57gF iYE6097l/3sBWivydTAST5U69a5Lck4id7trI14crXdMUV/rjvPvQf3XMVEr1428f4/8 TR1g== 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=qYevPOYnyvuj1EJVS6i4IO89fk2z74NL8uxJSQqq8Gh3lwBwZd+VndqbvPJrPIoSCD AbW+i5rAXZSoFSHrpnUMPBX3GpBBtZJ7xala/9Kdh2kPF8ZXnguWsP4fAJ7XSo2v4p0F /jRYh/jntNLgXCzWWM6/aO6PqIvb+UxewAn7Co07cfVojt/hC9+P0n2LgPEvW0m39CAk C54kdH6I5W2is7iZVUkFE7hPVXztc2sBwzE1ZAIXV1AvNRHeTzxl0ojvkQTpzJI02t4M unsKX6IUZurbBCutOXsYb2v4T2kgfqPujWt3lzhPcD7hHldzRsptmxyyOdEn1M+C10Ia 60Zg== X-Gm-Message-State: AGRZ1gLDCeq0h5we/T4YU5QNJIeBZ4nV1wxVAF/CSGOFCUJipAfEGqh2 J4/o99V9NC6nMXWReZIjiOe3wXUbUZgbwQ== X-Received: by 2002:ac8:4506:: with SMTP id q6-v6mr1422639qtn.68.1540514732803; Thu, 25 Oct 2018 17:45:32 -0700 (PDT) Received: from mango.spo.virtua.com.br ([2804:14c:81:942d::1]) by smtp.gmail.com with ESMTPSA id y3-v6sm2371735qti.27.2018.10.25.17.45.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 17:45:32 -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 3/6] staging:iio:ad2s90: Remove always overwritten assignment Date: Thu, 25 Oct 2018 21:45:09 -0300 Message-Id: <20181026004512.31012-4-matheus.bernardino@usp.br> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181026004512.31012-1-matheus.bernardino@usp.br> References: <20181026004512.31012-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