From patchwork Mon Nov 13 01:52:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li kunyu X-Patchwork-Id: 164308 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp950352vqg; Sun, 12 Nov 2023 17:52:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHoOzKL9TRAaLqMjJ/LFCLr6ZA6HR3y/1YhILMLEEYeQkAEAPfgAMdQzgmVQTLHdt1dMYDX X-Received: by 2002:a0d:d481:0:b0:5a8:5219:df6b with SMTP id w123-20020a0dd481000000b005a85219df6bmr6456608ywd.24.1699840375236; Sun, 12 Nov 2023 17:52:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699840375; cv=none; d=google.com; s=arc-20160816; b=WahzhXpB0n6RMHl4QUoVEQgZ62s2S+HbIT0HLRG6jFBr1ezETfybXcmIYEFp7acI5D KHdB3T9zTLxOft3IWRUvMUyDnczKJayvbXcywamZoJRQX79R9WJunZma/n/FDzfvtrO/ C6sK31jMa6gBCUbgKozQNWqpGnP3WP8ERXdezuZSxk7FoBeJsP6DOMx/4bDzFmdMR1iq qSe2lGcgyjf1pPTEbVgMwgfQ9vs8I/Amay40OUK3X6QJAMZCvh0JV5WokrYXORm3v6TS 3IM6GHC2l/AZn+ljMiEKEfIAJXxStylLNEQeCoYiv7kdh/iXkG2iZAV+N8WtRfE2ZBqC RrMg== 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 :message-id:date:subject:cc:to:from; bh=JYO9ioPfdBFyx7ErIwXd1fH38KZ1gxqYTbsgkv83nfE=; fh=VzDmaq5+E+wc3B1kbx34+EeKd9yk8IOafacAanal82g=; b=1GGYpXtGQC7FdjAYJFUi4j2zsRnD7+GuzYhmskm3yB/TjbNs8iQVBzawzz7zgYjWmC co5EYtW1tkS4jYkAG3ZBJAHlv9MTFrpubig2f0UPMhyr1j9A8rekA5L6gLAkVGnYjt6O YNcX0QCxVJlmNjcg2rRKFKb0LjyH2JqZkegm4IxMKJuWUk7e3SnzRSwfHGenNooer/l9 0M3ak+smjFI0/h+qhsgi7cChimMNsv3j2mPEHKPvcXTycvDwQYegjxGLGuU3o29/czLn 9tlkHeJuV7TaC9H0yMXR319ZBrtmCb8H8mSlaRwMXrL3ZkO1GsvmJTd835v73mA/JDRo tcHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z2-20020a056a00240200b006be2d9914eesi4704683pfh.118.2023.11.12.17.52.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 17:52:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 443298087DEE; Sun, 12 Nov 2023 17:52:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232787AbjKMBwj (ORCPT + 30 others); Sun, 12 Nov 2023 20:52:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbjKMBwj (ORCPT ); Sun, 12 Nov 2023 20:52:39 -0500 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id F06AA1727 for ; Sun, 12 Nov 2023 17:52:35 -0800 (PST) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id A813860327F34; Mon, 13 Nov 2023 09:52:32 +0800 (CST) X-MD-Sfrom: kunyu@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li kunyu To: fbarrat@linux.ibm.com, ajd@linux.ibm.com, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Li kunyu Subject: [PATCH] =?utf-8?q?misc=3A_ocxl=3A_main=3A_Remove_unnecessary_?= =?utf-8?q?=E2=80=980=E2=80=99_values_from_rc?= Date: Mon, 13 Nov 2023 09:52:29 +0800 Message-Id: <20231113015229.12074-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=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 groat.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 (groat.vger.email [0.0.0.0]); Sun, 12 Nov 2023 17:52:53 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782411820905573141 X-GMAIL-MSGID: 1782411820905573141 rc is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li kunyu Acked-by: Andrew Donnellan --- drivers/misc/ocxl/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/ocxl/main.c b/drivers/misc/ocxl/main.c index ef73cf35dda2b..658974143c3cc 100644 --- a/drivers/misc/ocxl/main.c +++ b/drivers/misc/ocxl/main.c @@ -7,7 +7,7 @@ static int __init init_ocxl(void) { - int rc = 0; + int rc; if (!tlbie_capable) return -EINVAL;