From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 660C3C433EF for ; Sun, 27 Feb 2022 11:55:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230220AbiB0Lzv (ORCPT ); Sun, 27 Feb 2022 06:55:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbiB0Lzv (ORCPT ); Sun, 27 Feb 2022 06:55:51 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A989F31900 for ; Sun, 27 Feb 2022 03:55:14 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3721C60E9B for ; Sun, 27 Feb 2022 11:55:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93FB3C340E9; Sun, 27 Feb 2022 11:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645962913; bh=1D46LrvQDmcYzxzHk0RLMPYyM8EV3PHh9+WRVp5XWa0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NBJctDlFoWnJJmkLzv6gW9pBQk+6sWeFWhVjbpXdxCnosJ4Nsyc8oOMsbeTToQY7C h/VMwSWVOtCnXbb2x8haTDsUuGuR8AqJsNuZ7n+HykVBLAik6YURlBvS1lk6a3mc9D sw1Pnz5gyM3GGLGHBwuTxqfn9m8ZNksvgfiQqK5zqaqeMRAav68LALWc3sKVidNq9l qaFFaU5tgKdEmcN8R+Ymv1LZCnZ6ugVDwb43rpB3t9g/5NWPlwT+5m3uKKR7Cb+9qR +wb3GgGGxchBSJEAN9FerOJVz6i8jT36ExfEV/mY9SVg5muAd1Yzp3FKNZXvhEyH0y /uEYbiGNsYuGw== Date: Sun, 27 Feb 2022 12:02:15 +0000 From: Jonathan Cameron To: Andy Shevchenko Cc: Nathan Chancellor , Lars-Peter Clausen , Michael Hennerich , Cosmin Tanislav , linux-iio , patches@lists.linux.dev, llvm@lists.linux.dev, kernel test robot Subject: Re: [PATCH] iio: accel: adxl367: Fix handled initialization in adxl367_irq_handler() Message-ID: <20220227120215.4c112bc2@jic23-huawei> In-Reply-To: References: <20220224211034.625130-1-nathan@kernel.org> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On Sat, 26 Feb 2022 21:49:16 +0200 Andy Shevchenko wrote: > On Thu, Feb 24, 2022 at 11:25 PM Nathan Chancellor wrote: > > ... > > > drivers/iio/accel/adxl367.c:879:14: note: initialize the variable 'handled' to silence this warning > > bool handled; > > ^ > > > = 0 > > Bad advice (at minimum it should be false, but in general it might > hide a real issue) True. Thankfully Nathan did the right thing and looked for the real problem :) Jonathan > > > 1 error generated. >