Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp375609pxv; Thu, 8 Jul 2021 23:49:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB0n5oYRvm2j5T1zBW2m2eIJKMnBDRaYzGtR7vPOTn5J/hBjYw7g8xc4cxIcOrczlYgFLk X-Received: by 2002:a92:c5c8:: with SMTP id s8mr23169050ilt.38.1625813368522; Thu, 08 Jul 2021 23:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625813368; cv=none; d=google.com; s=arc-20160816; b=NYHhCed3BJ81578llhhBNsgkTCnXgKV5iXPHQ8ftU1SA1drMAoiSYZYeg5XzBGsH13 PtnvNpPvUQRvQr8NVjAPgy2P3uPFAv0qN0/zL5+0vcgJQ8FvBFS2L2XSilfJwcjs2PqW KVUIxm/Hdq4gS6IQyPdP5GYdMJ97TaQ9R1mH+pDekCQ9c2++3WnK8hiOCfco3UKQX7Jx wiRQjmO1lVgqpyRhNbJo+0a/p90qcTQcxpBWOOBwVotrvubkXbytL/Drk6iAyUVo0i5J tITEyOl8tw7R9RI7+R52/bvvXltmR4JbRY3w+4K8MLKlQW1VhxbzmO8n/spSmY2wHjN7 XacA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ytqtdpl9pob/9BqFMq5C9O1MXHe/3Ql3PGORx5c3o74=; b=M9gLmtDgjlf/f6gEtdwqQTXioD9hs2h+eW5D799A4RFGSv+Y8luuln0qvSBI/y3qnx WhY4YT4U86Kmvt4jimzzToK9MaMR6dmNaT05g8ls3yiHBpO3GsOZFRS/c78I6rK9Gytx mhoNmRU2KrYxY/p9yzixas7D7lcuMgjXpjKhWJIxL3bJCHQIwVqt6i/1GOnK+1P1iP0u sub4nh03VuoLyzMpWuYqiPmLfWjJUurjM1WLu2U6itaOJpf4xZR68G4MUg0ehMfRmO0a SsWXitJOi03+rFmI6fQpJcOYGZ2X0Fgp6pprln6Mc0/SmvZ1ik5J4W+I1I8W7BoapV4+ KlAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b=GJVzd35p; 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 t10si5392340ilf.122.2021.07.08.23.49.16; Thu, 08 Jul 2021 23:49:28 -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=GJVzd35p; 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 S230269AbhGIGv0 (ORCPT + 99 others); Fri, 9 Jul 2021 02:51:26 -0400 Received: from first.geanix.com ([116.203.34.67]:33146 "EHLO first.geanix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229979AbhGIGvZ (ORCPT ); Fri, 9 Jul 2021 02:51:25 -0400 Received: from skn-laptop (unknown [185.17.218.86]) by first.geanix.com (Postfix) with ESMTPSA id E65294C6131; Fri, 9 Jul 2021 06:48:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1625813320; bh=G0vkrddXVJRk86vG8AulMVgWg2Euen3OkHPG0N5Lqzs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=GJVzd35pmHfMihPaCrCIIrePwsC6hhHg1u9rv11Sm3xm5WOW1fxP+6zFytNabgF5v yb50kv8LdqD/KALAMcDnwR1raf6tiK36mVm5kC/Ao1P6O8RRE9POF4LfCCCNj82aQH 6R/DpzFRfbS4fJVR6WuRPeKqgqqtZEyVDOq38XqMDJxohXSR6Sdai6PFBm9j0EOxe0 wn6DmqhkQnn9HtLM3iDPg+9Q9nUGGKCdilm+qLFU3tEL5O7NGr2RmAgN4ASnBj3ojJ LBtfbAMwGnfnQqMX6x43MUWNINjk6i2QxgNKUi1KJdvFrX6a+RrksBLW2nkN6Xaw5g vV7DQZJFoZZGw== Date: Fri, 9 Jul 2021 08:48:38 +0200 From: Sean Nyekjaer To: Fabio Estevam Cc: Souptick Joarder , Jonathan Cameron , Lars-Peter Clausen , Andy Shevchenko , Linus Walleij , linux-iio@vger.kernel.org, linux-kernel , kernel test robot , Dan Carpenter Subject: Re: [PATCH] iio: accel: fxls8962af: Initialize return value Message-ID: <20210709064838.wtuqgm3qwguhpfjn@skn-laptop> References: <20210709031526.30746-1-jrdr.linux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 Hi Souptick and Fabio. On Fri, Jul 09, 2021 at 12:36:25AM -0300, Fabio Estevam wrote: > Hi Souptick, > > On Fri, Jul 9, 2021 at 12:17 AM Souptick Joarder wrote: > > > > kernel test robot throws below warning -> > > > > smatch warnings: > > drivers/iio/accel/fxls8962af-core.c:640 > > fxls8962af_i2c_raw_read_errata3() error: uninitialized symbol 'ret'. > > > > Initialize it. > > > > Reported-by: kernel test robot > > Reported-by: Dan Carpenter > > Signed-off-by: Souptick Joarder Missing fixes-tag ;) [ ... ] > > Would the change below work? > > --- 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; > } I have already submitted a patch for this :) https://patchwork.kernel.org/project/linux-iio/patch/20210623113115.581609-1-sean@geanix.com/ /Sean