Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp773077pxb; Tue, 5 Apr 2022 22:43:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjWJWI/QjZdhBCQXAqRhsK15ctt6It+nrWB1r89cxXnXkFSe1eLmggutWN5i39TL24GNdF X-Received: by 2002:a17:90a:6d96:b0:1c9:c1de:ef2f with SMTP id a22-20020a17090a6d9600b001c9c1deef2fmr8017814pjk.210.1649223793700; Tue, 05 Apr 2022 22:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649223793; cv=none; d=google.com; s=arc-20160816; b=PsEMKcsvmZovmHtLClPnuxq5//HtxjLzGL5ITsQIkRrS49g5xkW3OnwdUMW5+QHBmj n62oxIfevkYiH0XdfD6TPNCLFuW23PNkRBJyjnBP3e4GZuhvVdbeBmGbkvgHeHc9KQx7 fshYhSLlV/2n5xPUlC1qT5AzGyY1CY6+D8Ri8gatbXNj3Gpq7DeFioWoF6zXhloyfdjn DuX1OWkTNGfzX3rarAm3Fb8hvNgvoVnowhbtYgBvp+rsTk19idKcMlxD3fo3hPep2uUg KnZDIadqQ8jA+xzCc0YO3F4voN9H1jmPeUm+ViVw3U2qRN2lNADasawxG6S5At/jXG3P Bviw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3CMOKOoZUqbpArL52TnkaRMypX4l0ZgogBwcxd5b5eQ=; b=WkAXEjTOuEqbBdq/+IIlok1n2JAqEHe+eqwFsi6xeAzkNC+4iC8sHafVopaSv520vM HRSgEI+mRzw8csmVPCPEth3v8bipSvuWEQ0fBX7FbI5EazuvHxBEPNoY2LNrFz8N/bDm LMSy25mZo+xFZpwcj8uiqaHx33gHH30C6bbp1ivMKHNFL1QCbO7nEvDv/Pl9JMjuw0Fo le2qzTmpnxU2OiwZrV8zX3fa/BH2z83oAIbf2hMgsrvHHIOsADWclRmoiOEKx3Tx8ADJ 99eEgTvxhZhtrNaFZqCU7KVMnh3qg9RDJP4ZFkGHgXGPQXKhmoMDglLU5MMopWoB+1qL vnRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yN89FzAX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s24-20020a170902989800b00153b2d164b7si13417498plp.191.2022.04.05.22.43.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:43:13 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yN89FzAX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D0EC4447917; Tue, 5 Apr 2022 21:48:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351681AbiDEUP3 (ORCPT + 99 others); Tue, 5 Apr 2022 16:15:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349819AbiDEJvl (ORCPT ); Tue, 5 Apr 2022 05:51:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5098A22284; Tue, 5 Apr 2022 02:49:43 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 0D7B4B81B14; Tue, 5 Apr 2022 09:49:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5338EC385A2; Tue, 5 Apr 2022 09:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152180; bh=Gyix2CQ34Gq69PxjvLdjwTq82hEB1eQcP6V6TXWjEEk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yN89FzAXwffcAxjDz+brsHj7sR6lPn1zdz8OFZiTWalbVt55Z+Kg6SoGOQcdS6flC +AFTQD2sSt7b72h/VqXDDnrJSjle60os16EpMpr7XAVmT6IKgSX+wB+htNm4I0eSkx yNMrZNMomAYdJ98356ajLtTZljhwrxG6s1r2xfRs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kai Ye , Herbert Xu , Sasha Levin Subject: [PATCH 5.15 684/913] crypto: hisilicon/qm - cleanup warning in qm_vf_read_qos Date: Tue, 5 Apr 2022 09:29:06 +0200 Message-Id: <20220405070400.337863588@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Kai Ye [ Upstream commit 05b3bade290d6c940701f97f3233c07cfe27205d ] The kernel test rebot report this warning: Uninitialized variable: ret. The code flow may return value of ret directly. This value is an uninitialized variable, here is fix it. Signed-off-by: Kai Ye Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/hisilicon/qm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index ff1122153fbe..b616d2d8e773 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -4107,7 +4107,7 @@ static void qm_vf_get_qos(struct hisi_qm *qm, u32 fun_num) static int qm_vf_read_qos(struct hisi_qm *qm) { int cnt = 0; - int ret; + int ret = -EINVAL; /* reset mailbox qos val */ qm->mb_qos = 0; -- 2.34.1