Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1020670imd; Sat, 3 Nov 2018 15:50:59 -0700 (PDT) X-Google-Smtp-Source: AJdET5ek8woTixql1bTTIc8qwBcsS3glK7RnBK2w0Qq48isrr9mLwCoE8rfhCC8AJ+we4G3Z/h2S X-Received: by 2002:a17:902:9a47:: with SMTP id x7-v6mr16799204plv.316.1541285459729; Sat, 03 Nov 2018 15:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541285459; cv=none; d=google.com; s=arc-20160816; b=XmGx/w6X4Je0oGMPrHRe1xmHWUv0VOxVohY0osHZV8ncNZi+OM2g+4owIWfZ2L+cW8 o17Iom/YgJGYeOGCHvH46JIQXPMB8u704y9x4eiI67CLEfQRu+wypKYDGL15zGA9j4oX jOviyehqQfBoVUrjmFPuXZu3rnW8uyPsMAVXNPkJCnv/46gPcjbksZ1ZSkumYLpmXQ8w MABdP4NfZuVWHjSl9qsTqvcvY1x6JidIhfvpOdb4m/kbvIiYDS1vyRNUuZWmAnVFAyS0 q0ncYktzsyJKazykRZtTRFgqDmxuSMV2R6/nTWqNUWo9IF+/tFTa2qALEkXXWlDHXnB5 Dc8A== 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=xuC9nGCa0Xu3GdJ9qRkKK25LaCKIesQs7VLCImXBAKU=; b=TMr5UkD5SHDvu/FZSkG2NEhFGmvfBI4hgh5gjpzVTFA/0zPQAf+xehzhXLTHSJjucd Oc5MRShntXgk+R/nzoARBTGBssdZ+cTGqfmP4ZiLhC1Y7j6xd6rZcg+vB1TONH60W2Yd Ym2iWWhbCOIuh79WVldtUa3fWuSbYGsAA253rS/B1hUwmv2lWOFvhvxRRIYRFl1JhT+S AQLVQuxPOQ3w/cTvXTfkIoE+eW+0SPyQXJvzC/8vW72ZThJnV3llHIq0/Dgb0Q5w7P4u pjJACeL+5/ae2RuC/Bb0dVkm8pU0MqVwyK3PHDrEFDtZIWYq77WASZqAjHNSuWZDusvU B5MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=uHDjOW0H; 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 1-v6si41613750plq.243.2018.11.03.15.50.45; Sat, 03 Nov 2018 15:50:59 -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=uHDjOW0H; 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 S1728766AbeKDIC4 (ORCPT + 99 others); Sun, 4 Nov 2018 03:02:56 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:47089 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728743AbeKDIC4 (ORCPT ); Sun, 4 Nov 2018 03:02:56 -0500 Received: by mail-qk1-f196.google.com with SMTP id q1so8900963qkf.13 for ; Sat, 03 Nov 2018 15:50:15 -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=xuC9nGCa0Xu3GdJ9qRkKK25LaCKIesQs7VLCImXBAKU=; b=uHDjOW0HuP8aULg69i2rds4IIrM6qqjylGKMidH6a0hCIzjWk/yq21MFNbeTWcs/KM od+fZPThANrhSwAscMQAb2sTx3PeJjSl5JUXD8GEWJN6V6xZvRcomYPRQoEKpTA+KxrY jlwIY6vQCJO1Nmhw13/E0vMavTxq7Dm2Smdv7r4Ir9tyCBcBAusW8wwolRLpPHd+/RHw 1FUiCCGHJrKBjIwdqqFDQ5BfY+sAvU0x8kSF+c8v8Fs2zPuHWSFdR07ZEh3kEZBoIlMk nhhRyUe6lBKqgHa5tXGxl2kT1+KI2DQKt2gaklY2ZMw/EAUQKaUFmdfHqbB5c4RfzBi8 5KOw== 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=xuC9nGCa0Xu3GdJ9qRkKK25LaCKIesQs7VLCImXBAKU=; b=BAoEm7fL300xbgs6m2TGi+CAmFM+nX5vkyGypV4MenHyuM8DEkpiOfHVgM8SpLs/L4 +CmUxWqa6tLAAbf9d9lcbkYg1rBi0gBqwwt51Bpu/2j8VHRXcgDdaTavjiRCa+6VDar7 RO+YT4Dr6YqwPVN1E5JS03nI7W0I282BpoF+sN8JtfnMnwBWdvb/9vDnOiWhPUE67w+R K9w7qt97kjmcQEdrb7T+Y9DF08E+KG6uEUdOg7lgEQ/GKPMmXQbJX/pveA07DxBcwdUc 7MxMPtc5M6BHSZ8PDPIO4yh8vdDYL7XtVKqdnK/8eKyD6tbRWYjc2V3hie5UQBC7xZhz DbVA== X-Gm-Message-State: AGRZ1gL4zawCImbtTP7TwPcCYasw23/uUxGZl03XQn1WUKfbAgrm7zVR isd6JPNobufM+ryR5nNg+MrNNw== X-Received: by 2002:a37:14ca:: with SMTP id 71mr14806570qku.295.1541285415382; Sat, 03 Nov 2018 15:50:15 -0700 (PDT) Received: from mango.spo.virtua.com.br ([2804:14c:81:942d::1]) by smtp.gmail.com with ESMTPSA id 35-v6sm27550924qtu.69.2018.11.03.15.50.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Nov 2018 15:50:14 -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 v3 3/6] staging:iio:ad2s90: Remove always overwritten assignment Date: Sat, 3 Nov 2018 19:49:45 -0300 Message-Id: <20181103224948.31014-4-matheus.bernardino@usp.br> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181103224948.31014-1-matheus.bernardino@usp.br> References: <20181103224948.31014-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 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) -- 2.18.0