Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5576854pxj; Wed, 23 Jun 2021 04:33:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW0Xi8M26y+xZDIRnXBONssTI4sp06PjFrfnyul1qFaYJmaig1UZKTXh4XocU+Pyng5qDN X-Received: by 2002:a05:6e02:4a1:: with SMTP id e1mr2496595ils.133.1624448016279; Wed, 23 Jun 2021 04:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624448016; cv=none; d=google.com; s=arc-20160816; b=jvGl6m6e+LwbTzBy3Pum64mGlDmInBi5s9FlIMHNCdXgEbIxetfFfUNJPCE3aRnYPh pmr+N+OldB8aJFDbUFHCs/KmIavRd5ed9aQWyqpybE5BGGMIIQMkK7lzCAtzsX3PdbYE qh4MTvduF5/Y4F8ZoZaSQM6aGmBZ1yV1/RH/zuGcSRN3os6715VL0anjNB92dv9uXu6Y bSQTkh4+tM++F13S/Kv+3OXCSIDrcyz5ZquV0W4+x0YnakVXRUNMTCyuWZwQ6TdArl8O hatRPc+7MmKg27bJDR5Ocu0cxAtNk8eGg2TgjygaFy46UyrSo/hNYMY0H6qUNqn3Qgnb LEwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FFTOzgEeH+fDTqCD37CA5NVYh7bsY7m+FF0O1FdPshA=; b=uQtEME3iP5wKYm4TYDR1xV0dJUrJQnD8WhgLtAVwWWr54D82VwRs3HEwvtjii9hKUv prCu+/YMwNU29doSIbFo1pd0QWqh1Kscffp5M4xk+UBeSvNbiltv4BSz1pBRDjYVqFt4 0goS1AwrXfpm8tu5cGP9ggHzUKOBzMrhemDTDm15Faw6Kqr1RFQTp8yHzpMJhy/m5QrT l4xGfMKaTmeVVO1mBRKadeS2e1nXHBfy5zJWLGimx7USRGUw6xxsmU+RGXIm7+4aw/WJ Gen7rt9LrmP3Wb7djmiY7Ng/ZCVf7g0/FaI+8u8sYWgxHcmnuRU1AzGXeiSNpy9umBw3 WZxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b=F8DDThwi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si2570169iol.91.2021.06.23.04.33.22; Wed, 23 Jun 2021 04:33:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b=F8DDThwi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230234AbhFWLd5 (ORCPT + 99 others); Wed, 23 Jun 2021 07:33:57 -0400 Received: from first.geanix.com ([116.203.34.67]:39692 "EHLO first.geanix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230138AbhFWLd5 (ORCPT ); Wed, 23 Jun 2021 07:33:57 -0400 Received: from zen.. (unknown [185.17.218.86]) by first.geanix.com (Postfix) with ESMTPSA id 932304C3C67; Wed, 23 Jun 2021 11:31:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1624447897; bh=nUAgFgu7cSs+IeM1qSV85FLHqYX22lMVFLHZNr59TF0=; h=From:To:Cc:Subject:Date; b=F8DDThwiUMJSt77RFwNw5UwXZA8/Qy8F9wnFEv02PJLfjppXpAYageHpZpT2j1mXK mwojARzLUP+yoHdu6WAm6eteNpeRoqq5XndqKBBnxOM7zJEgaIfT7N3pqJCWrT1oJi hViXKF2Ub5YdXCYAlNw3V9Cwk4oFEfUJX0LiFABypxpFOAsZjtDAMYXD92dI1EUk9p rHI0c6i2ccjyGxxlatV5EE0GMNocwZ/7HGWvCi3O/BHTi+QYxjwUBZLUiR2UaOW1+d EYq1bronQ05FnF2BBTfykke7gTk4yjYF+WymnEtgV/V1ne8artnUh0IGwQrw5m/XHY Wma6hz985+nLg== From: Sean Nyekjaer To: Jonathan Cameron , Lars-Peter Clausen , Sean Nyekjaer Cc: kernel test robot , Dan Carpenter , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: accel: fxls8962af: fix potential use of uninitialized symbol Date: Wed, 23 Jun 2021 13:31:15 +0200 Message-Id: <20210623113115.581609-1-sean@geanix.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=4.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on 93bd6fdb21b5 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Sean Nyekjaer Fixes: af959b7b96b8 ("iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads") --- drivers/iio/accel/fxls8962af-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls8962af-core.c index 078d87865fde..0019f1ea7df2 100644 --- a/drivers/iio/accel/fxls8962af-core.c +++ b/drivers/iio/accel/fxls8962af-core.c @@ -637,7 +637,7 @@ static int fxls8962af_i2c_raw_read_errata3(struct fxls8962af_data *data, return ret; } - return ret; + return 0; } static int fxls8962af_fifo_transfer(struct fxls8962af_data *data, -- 2.31.0