From patchwork Fri Jul 9 07:17:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Nyekjaer X-Patchwork-Id: 12366883 X-Patchwork-Delegate: jic23@cam.ac.uk Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D678BC07E99 for ; Fri, 9 Jul 2021 07:17:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B731D6128A for ; Fri, 9 Jul 2021 07:17:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230269AbhGIHUW (ORCPT ); Fri, 9 Jul 2021 03:20:22 -0400 Received: from first.geanix.com ([116.203.34.67]:34788 "EHLO first.geanix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230121AbhGIHUW (ORCPT ); Fri, 9 Jul 2021 03:20:22 -0400 Received: from zen.. (unknown [185.17.218.86]) by first.geanix.com (Postfix) with ESMTPSA id 5F6F44C629C; Fri, 9 Jul 2021 07:17:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1625815057; bh=Pe3FItGwFPBXDHQiYwt4pqtFmXwq7zrJ5hWntlDVFKo=; h=From:To:Cc:Subject:Date; b=WLknKA2kcRlWYDxOo1hdh5Ipzy/6OHRWFcGKMc6houLEfBuhv/ddafZJuGEy1DSHB r13tU8gEnQtCcwNvETIa2ZB1roVk7dHhwcyXLssE/a1xGu9in5jEQvB/h358CdrqbV im3Ie3GPb5GiBxXwwaMJV/AdLfWnMx/K/crwAX504STWa9dxMkH+Gz1ph0w/1egCFe FjWrF2NFXboVnbNpL5IeWQeOzRf9YzVt6DRh7ka7cAspt04l2zcVbFgAr7PZTR+Fo4 m/vvvIwI51NP8gVzE58d3uR67+ShNEd4A/TxOw6C+b6jOdFeIc/zHege2LtS2LEdGF wW77RVE5SrRYg== From: Sean Nyekjaer To: Jonathan Cameron , Lars-Peter Clausen , Sean Nyekjaer Cc: andy.shevchenko@gmail.com, kernel test robot , Dan Carpenter , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] iio: accel: fxls8962af: fix potential use of uninitialized symbol Date: Fri, 9 Jul 2021 09:17:27 +0200 Message-Id: <20210709071727.2453536-1-sean@geanix.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Fix this warning from kernel test robot: smatch warnings: drivers/iio/accel/fxls8962af-core.c:640 fxls8962af_i2c_raw_read_errata3() error: uninitialized symbol 'ret'. 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") --- Changes since v2: - add commit msg 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,