From patchwork Mon Jul 17 12:55:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 121301 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1105289vqt; Mon, 17 Jul 2023 06:17:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlEDIrN6VeSc/c69fksj4/yu/B/5mrEG5kEr2PbTk63gJ3XtxA3sgo/d6Y/uSYJZgbUNrQOV X-Received: by 2002:a2e:8885:0:b0:2b4:6bc2:a540 with SMTP id k5-20020a2e8885000000b002b46bc2a540mr8525339lji.15.1689599834388; Mon, 17 Jul 2023 06:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689599834; cv=none; d=google.com; s=arc-20160816; b=h7eIkTRpu9jFASZyy+/1giY6E0gpxDlpG4sveI7lePAuL1NTsxdr6K/mTyz61U2Dua fjitAxf1ZUliiZRm7pxqfQS2AR3TieEb2M0Xt0s87FVYmEr7NybaWxYeInXUkgA42KNC 5ZpoMqzlyTM4OoxxtyLIkGxULPoq0lm6AgYBg04VbHsNonP3+ho5RQduHXQrtwIsSwGa yBzrHwo/8Q1eRfJP8+xXSRgc2fHvrs7/WF3DuWTNQyTpHPl4sfXGis6km4FDycYXWQny X6T1qO0nBYDpFotn4MYYMpGAXnGgvVUSOTtoB2hSO/mA8BweRVnIOSrk8TlnKbEfLCcU mC1g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oPmFFAnhmUb/FWoK3e0Kll5yvHOYZS5eb+mwbk/XrFM=; fh=IyKg1uqoAWtVQc1A5/g8msQY3cOqeYZ+Io1B4YCO8IY=; b=hATtKtIWn134bKMjywozDp2HjDcsOrtVkdVRkW2JoZOdK9UpR5jUbW7Lu4Q6W0E09z x0L9jLeOu4L8Q2TRbFCWMaJlMP8lOlV09OlKRdiwoToE4F/qu5UJN3z7EZZD69Q1ITnz b/ZmGvuWWs2frW0x1FNF9zlSnYlyj0sIxPqTE0UkNrKPKjjJLjUgwKK1acHI6iUTY1Nb bD5nW/o6b/5cVt9Xl8mHkdtuHWQ+wWFZXVlmZfJIebiVxPB5ujWNG41tXd0/ESwiIfNx dhXoFdQKBm4C/1aB3EVYBe0DmRnIUBSm3YNtQo2Xc8+EFGkD5uoTUPXL/fnXkcR2t5Fr bfbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CyzM2lrX; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a170906250c00b0097d7282c899si13546238ejb.534.2023.07.17.06.16.43; Mon, 17 Jul 2023 06:17:14 -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=CyzM2lrX; 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 S230321AbjGQM4U (ORCPT + 99 others); Mon, 17 Jul 2023 08:56:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbjGQM4S (ORCPT ); Mon, 17 Jul 2023 08:56:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16162171A; Mon, 17 Jul 2023 05:55:57 -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 5C27160FCE; Mon, 17 Jul 2023 12:55:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28389C433C8; Mon, 17 Jul 2023 12:55:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689598550; bh=Q7pKNk67CcMjZhU2BuR7aWDSbf0Q1N/8D9W5c7T9mi0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CyzM2lrX2vhR7YURG51IIcmk7Pb/9k6qGXm2HGHRz+mFX7WF34G8ppatWSuyKQg8t 9agezGE48OHI5jrr+9t24YNom5IPUvt+u+WpaL3OSSHfKcfDyvLlF9LCphgU3d2xxs FILKtierYhdlu5WRBUpJxNRFTHs69p6OAnnVmarOQvZVEXlsRKJUWc77O4eW8j3ZnO qI0BLIjy7unmw4puJyJVrTRvCo7ZC1/kXo+mdnLQDaeDZecVylkP1wZ0jaDF9JjWpH u0zF0aU6uYmFFSVkRvLHBNhkwlChnYPn8fA0EvJJ6iKA0wKLVm2/KrxZctsujCf80I nQn+W2YMPGA8w== From: djakov@kernel.org To: djakov@kernel.org, konrad.dybcio@linaro.org, andersson@kernel.org, stephan@gerhold.net Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] interconnect: qcom: icc-rpm: Explicitly return 0 at the end of the function Date: Mon, 17 Jul 2023 15:55:34 +0300 Message-Id: <20230717125534.2455745-1-djakov@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771673745740064057 X-GMAIL-MSGID: 1771673835683466794 From: Georgi Djakov Fix the following smatch error: drivers/interconnect/qcom/icc-rpm.c:243 qcom_icc_rpm_set() error: uninitialized symbol 'ret'. Fixes: 32846c4a8f2a ("interconnect: qcom: icc-rpm: Set bandwidth on both contexts") Signed-off-by: Georgi Djakov --- v2: Just return 0 when reaching the end of the function. (Thanks Stephan!) v1: https://lore.kernel.org/r/20230717073429.2115015-1-djakov@kernel.org drivers/interconnect/qcom/icc-rpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/interconnect/qcom/icc-rpm.c b/drivers/interconnect/qcom/icc-rpm.c index 612390b9eb18..2c16917ba1fd 100644 --- a/drivers/interconnect/qcom/icc-rpm.c +++ b/drivers/interconnect/qcom/icc-rpm.c @@ -240,7 +240,7 @@ static int qcom_icc_rpm_set(struct qcom_icc_node *qn, u64 *bw) } } - return ret; + return 0; } /**