Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5220666rdb; Wed, 13 Dec 2023 02:28:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEg7nxP0a3rpOYKnjiSSiFrlmvH4adXnHDU+jERi+R2OQ9vbNdfaMduwMMvm3UMLb4UgMWE X-Received: by 2002:aa7:8896:0:b0:6ce:39f3:88f2 with SMTP id z22-20020aa78896000000b006ce39f388f2mr9907151pfe.23.1702463335144; Wed, 13 Dec 2023 02:28:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702463335; cv=none; d=google.com; s=arc-20160816; b=LNX+oOHeI1YelmccQerUMO4aRRgAwBDGoWqg8lsvC0iDk/ZahxQDUOHglYCYM9ECA7 LAz3NtwQMGETUSRiJHjuDrAtAyRGBRkPuFpRsSoqt8TBiVyq10KYoroNT6Z2An0/GWJw YN9ObFYVLVoMdYuinJOt4jkjMxcyWuxbwmowr2AFztM0EyI8Gqyrbt1tRdiOLZ9FwD6b sMMeVgUnqZiUMKG1wkFFJ6J5IFzsuQAG15hD985+CSewPayiDXDgujkwCR8epdw0nEEp y3FODibCTCk0UQKvmEeNwhRVe5n3UCkzLx9WOQhISfab9Fswi9WUmONls9vrSznBxUoe k2ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=t+ilbxGQf2dBN4ZGznpFNFTwrzoJIiGBNXBpzfNjyCk=; fh=dGkoqzwhlH0s2AyNvZs6Xaa2CsDxf0v9hF3JkUycRXo=; b=sqelHG/Cl9cdVNloq2nQwBy+Euv5CzIsbl2yu/BeJAxQr2vrHlZCRjS9Nxdq/qM4ZL j5brGF9BLFn5oJTOzx6RfSfHJHdLB8oxqKiE82KVvXwnysvnfwgWtkCDRcZS5bXhjbSS ZZLAof38ICmXO3XT8c3JkXdi7K+jRCltcZcicG9e7PI0diWdewUaqAzEW5YrMBSfnRaP DO+8+mmvqrVmwWPiMkhcVmJKd/vm/5mhXfZlTAdBrPyCrCAYo3YpQXU9usX9tCMFX58G OE5/aI9tPb9OK9UIgmZmW9XSi0HmXZ+Ap1DKRhOvznrHkgbKpApPCYbxZfEaBFk6AoWb Ae6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gVCn5E0M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id j11-20020a056a00234b00b006cbf67abff9si9518170pfj.269.2023.12.13.02.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 02:28:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gVCn5E0M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id BAE308046A27; Wed, 13 Dec 2023 02:28:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233184AbjLMK22 (ORCPT + 99 others); Wed, 13 Dec 2023 05:28:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231863AbjLMK2Z (ORCPT ); Wed, 13 Dec 2023 05:28:25 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7B3CA7 for ; Wed, 13 Dec 2023 02:28:31 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40c2308faedso69029515e9.1 for ; Wed, 13 Dec 2023 02:28:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702463310; x=1703068110; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=t+ilbxGQf2dBN4ZGznpFNFTwrzoJIiGBNXBpzfNjyCk=; b=gVCn5E0M8S2JIE/11MZFU/V4gIcRBX9ODiA8uBLVS+BPq6o4L6u/0Lcl2YG+RmHjFp 7p9MtZAFGVBIKCmbzya2ZWD6WFDN1auCnYABODVh0wpEGAJX1dj2o7sgUvdjZjHhCN7R buiDZg4BP8+XznX2JXJFe1SGwGHrMAXi4C7SqQvX1c7UivuqnnDyKbxLwTMmM5X4/m0M JlEXjFvNOKzoKk791w/LovumC7+v+3v8bDgTgtPLUaopO64oDGPHQCibqhPe7f9+8KHR uzDRSb5aoRT0r0PzrEk31z2LXLb5lRuZqYs5mDG3o3qaCu5F6e+QGGb8MiVY6D6W0YBx zKBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702463310; x=1703068110; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=t+ilbxGQf2dBN4ZGznpFNFTwrzoJIiGBNXBpzfNjyCk=; b=dcTVz9zIJW9uatC+9bZes81XEpVeWP8Dcdof37y8EBWU9lqxgBcZq0h9pOfCqKLIrB gaP3dlzINun9aoWMS2J/OwUD5Xhz9zZuwmyXwiNacY4UxI4aEdQtA4EAIlWBviNEHD+u OnYLlgOwIzPJVMx4o7RpZHVf//m6yvFCLihGSjXAropndT+GG4WVeoj47NOhlktfZLxA WgaWMkjYep5wqmkIaajHi9kUS4vZQkzRw0rNMnqw1Pf8HTkcS/xWccTrSKtm58/ajKy5 KoGQsXscKpPyaptzsNharR+uv9JjeIj4m4diztDAb7mGxQu9BqtGYpDkCAesh3cbEO4E ekMg== X-Gm-Message-State: AOJu0YygS3HzWcym4yco47sHgKIwzsECrrX/ENOXiYSlw64KrlSIW1VE z/MzVSoyWrChla0N9g8S/iFXPYssjNf2lqHyG1s= X-Received: by 2002:a05:600c:4f11:b0:40c:33f2:dc9c with SMTP id l17-20020a05600c4f1100b0040c33f2dc9cmr3762192wmq.71.1702463310331; Wed, 13 Dec 2023 02:28:30 -0800 (PST) Received: from ?IPV6:2a05:6e02:1041:c10:c49e:e1a5:3210:b8c0? ([2a05:6e02:1041:c10:c49e:e1a5:3210:b8c0]) by smtp.googlemail.com with ESMTPSA id az27-20020a05600c601b00b0040c34e763ecsm18952078wmb.44.2023.12.13.02.28.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Dec 2023 02:28:29 -0800 (PST) Message-ID: <6e40d76c-b4e7-4ed9-9d37-f0f7850f07a1@linaro.org> Date: Wed, 13 Dec 2023 11:28:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] clocksource: ep93xx: fix error handling during probe Content-Language: en-US To: Arnd Bergmann , Thomas Gleixner , Linus Walleij , Nikita Shubin Cc: Arnd Bergmann , Alexander Sverdlin , linux-kernel@vger.kernel.org References: <20231212214616.193098-1-arnd@kernel.org> From: Daniel Lezcano In-Reply-To: <20231212214616.193098-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 13 Dec 2023 02:28:52 -0800 (PST) On 12/12/2023 22:46, Arnd Bergmann wrote: > From: Arnd Bergmann > > When the interrupt property fails to be parsed, ep93xx_timer_of_init() > return code ends up uninitialized: > > drivers/clocksource/timer-ep93xx.c:160:6: error: variable 'ret' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] > if (irq < 0) { > ^~~~~~~ > drivers/clocksource/timer-ep93xx.c:188:9: note: uninitialized use occurs here > return ret; > ^~~ > drivers/clocksource/timer-ep93xx.c:160:2: note: remove the 'if' if its condition is always false > if (irq < 0) { > ^~~~~~~~~~~~~~ > > Simplify this portion to use the normal construct of just checking > whether a valid interrupt was returned. Note that irq_of_parse_and_map() > never returns a negative value and no other callers check for that either. > > Fixes: c28ca80ba3b5 ("clocksource: ep93xx: Add driver for Cirrus Logic EP93xx") > Signed-off-by: Arnd Bergmann > --- Applied, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog