Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4865597rwb; Tue, 8 Aug 2023 15:30:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGX67U3AZHjrnJ9zccHZj2ccv1R/Y4SakNDdnfisgararkyYPXY7l2bfqqK26qBkBz2r3F X-Received: by 2002:a05:6a00:1989:b0:66a:2771:6c4d with SMTP id d9-20020a056a00198900b0066a27716c4dmr940223pfl.4.1691533838199; Tue, 08 Aug 2023 15:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691533838; cv=none; d=google.com; s=arc-20160816; b=ZBvb+nZkLIORnD7/f7ix9qUXbpZKbgQ+DeDfNQQiw6u/X6XE5agz8E4m+BqSs8yWQT TxEsbK6jX0UInLsvXw524oSnIHMifJYJVZX9UiFUMqWxfzrgZZtTkY9GFurU+6KZq06h o4qxfqPFo7J7WUzzxB4hbBgLtQAGum+khm0ADa2eSV54SgByIS92zRZ83NXwu2vTtFdD OvG7mpk8qqnR76D8bkt5mS842WJ8W2vyZ39pnbqt/RHeITesCe9DLgl8PgrXF9newpvS s0XVAwz4UDdOnQf+UiFBPxOySdiQal2e08FXqiIP2lhnO1TgjF2ILBzbs/Rk/+SJyuWg zIGQ== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=qE8x+oYSxN9zEyEsHsPFOWs/J45SnaPrGgqnummZTIk=; fh=PnNfFvCqO8hzPYqDifQzykicXTrp9b12C6YB964P2ok=; b=X1AoYUbD+0uUbTEiO8dEFxrk5HO4Kf43bUwYL2g76YeZJFWFW7YDnTrolU9zGSxlqD jgGR/4rglEMz2pQyGPfFJGgUg5c52jlNfw0L1zLqB5CtFVmtCzOkocTH3C21lKNY3c3H 0xaKODTS4U+Q0m2BivTaBYhy+57zV5vpvNwGD+47QxTkmTD5YmrAqbiu2mClLGGQ7S3V LcUkRZIcNlsq5pN6CRHSPrjlrhJ0qectiEna/6g6N0NBKwfMIO4EQArEfut4nu9MTIJE lK4YmmMTLwKoiz5ICqYvyW94XES+fR2cNEbHDhS0Q+GTdDErmTN7ddozvhHnowWpAnv9 BNFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Je6zQFJU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i21-20020a631315000000b00563e15edb8fsi8108582pgl.544.2023.08.08.15.30.25; Tue, 08 Aug 2023 15:30:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Je6zQFJU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231905AbjHHUum (ORCPT + 99 others); Tue, 8 Aug 2023 16:50:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235083AbjHHUu3 (ORCPT ); Tue, 8 Aug 2023 16:50:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CECDF1CA56 for ; Tue, 8 Aug 2023 13:32:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6711662C88 for ; Tue, 8 Aug 2023 20:32:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D474C433C9; Tue, 8 Aug 2023 20:32:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691526766; bh=ml8jDgUG2KwsqhNQBURf1IbWBkdHXDt+I7v9LKUEo3k=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=Je6zQFJUmgtb/KUhwwLqn3dU8EsvFxXdv8Jx9vwP9NujqK7rNlVkk8wWQ8BTFlQix 4Dbp2r/K/uhJBK/GyiRYDhrOBdk4ed5QSuYwqiv3SY/3OVtHR3FAP64XCv4Q0JvUKC ZFhrFeZuVZH0uSl+GG/Ywp056W9to41drxEP9ebGECHjYU4J2D8G6Aq5Zf5g6/SdLn B/pe6m7OEOrhfWDi1vMZfbhdO1Uov400U7Zb0EQl203RXR7C20Wm3Dciq06NhYSbpc vkwZHfhJF9Zpe6oCO087sGnrQE111QpP9H4IjN6olMsTwVMHycDkhvcS6tI2e7nid1 y8nFSc1Z/CkIQ== From: Mark Brown To: Weidong Wang , Arnd Bergmann Cc: Arnd Bergmann , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org In-Reply-To: <20230808125703.1611325-1-arnd@kernel.org> References: <20230808125703.1611325-1-arnd@kernel.org> Subject: Re: [PATCH] ASoC: codecs: aw88261: avoid uninitialized variable warning Message-Id: <169152676489.192712.6832901777571090965.b4-ty@kernel.org> Date: Tue, 08 Aug 2023 21:32:44 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-034f2 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 08 Aug 2023 14:56:54 +0200, Arnd Bergmann wrote: > aw88261_reg_update() returns an unintialized error code in the > success path: > > sound/soc/codecs/aw88261.c:651:7: error: variable 'ret' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] > if (aw_dev->prof_cur != aw_dev->prof_index) { > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > sound/soc/codecs/aw88261.c:660:9: note: uninitialized use occurs here > return ret; > ^~~ > sound/soc/codecs/aw88261.c:651:3: note: remove the 'if' if its condition is always true > if (aw_dev->prof_cur != aw_dev->prof_index) { > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: codecs: aw88261: avoid uninitialized variable warning commit: 87b56172431bc2e8c497d2f10ee8245313167bd9 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark