Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp315456lqp; Wed, 12 Jun 2024 02:26:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJElQ+rQvhTK2L5hxb8jy+vO1OBwN1536rZ6nJdEirf7g9jx1hGBNOFbfHzFyKQ5wfby84Zbe+OQMYDVUWZuY2aLLwHPrNoUI0yFQSIg== X-Google-Smtp-Source: AGHT+IGhDcXgKaGDFoAuhivIYvdUyDPzoQtmQe3ep9O2/VCqJonvRP7/z3hIWNg/dPRBPTfxgiL6 X-Received: by 2002:a17:906:d297:b0:a6f:11e6:d4a5 with SMTP id a640c23a62f3a-a6f47ff7a70mr74639766b.56.1718184361595; Wed, 12 Jun 2024 02:26:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718184361; cv=pass; d=google.com; s=arc-20160816; b=xZnJ8Th9ULnH2LdaKIWBrqzR/BU668nnCU0cvJxDJwKJramWKXbE1sq3AeZlwW/Oj3 yhMGEBUmeavfN6SUXR2YUXC1akalperCjXitaXmisj/Rv7N8q8g26eHUqzGyyhCW0v5s Cl9SFiXkYKT2PYYMoQ+l2+ZH+CHZLvlKki+XgWUG8cKiWZqVlH3XDRZGY691XtUxI2Xo k5IHN47DIvPPVmQ+IzvFp0E3tIWH9zupUMncquxqxnOVeUEnSvIWp0goDekS+BGYC2Xc ftTeCqio96RYliHWkIlskocP6DyyraxasNFYtgUzkresQeWb7IplbFl7LSxPk5eHotkv bbSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=QtDzFeGOHvDUBXjEWsdWVMAL6/fb10ln8kGTr1NyK9g=; fh=Zd9APMrS3oM/Ak4+PXMC9L3qUgkS2K2obSK4WL7YokY=; b=zR45+68fx1f/QIT9DLUWErhwd5oaUPAyqPUjNSQvBmHUUzNbiilUy0VLiehMEyxSoK rdZiMi8U0+Cb6w1rOEOJje2/jZ1XKX209HN+ROGNBuhJTlgNz1XODwBOntvjV+ao2j92 Y9Bd2fEWw527vCbx0RbLvsw85ER5kplk6kJuKDnARydYqXL56y79ckHFhRIE/Yfw4XdZ isk3T95ggImAXho4cnnFl7Kzei0AaUXSpt+TtJ/JtR140m7crp+92sL+zt4O+zy7XePF hhPov78ldX2QAUjbMbibhFSQ3cDo5n4nHnx0fzEGRV3SgiQTu649z/z/we2RDO9lr7yx q/nQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-211261-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211261-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f0ffcc870si384444766b.605.2024.06.12.02.26.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 02:26:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211261-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-211261-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211261-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B7D421F211AE for ; Wed, 12 Jun 2024 09:25:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93EA316DECE; Wed, 12 Jun 2024 09:25:05 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id DDFD816DEBD; Wed, 12 Jun 2024 09:25:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718184305; cv=none; b=JCLJ8Va843RcUmoKmhV6ydc4neZ2iPETRRuTaKJCPlCLOEh4XWnEFaJNu9bnwRDfkOtcsgQ8bQGrDSGcd7fk6VA+1YdS8TwVIAHam+cgMIcdBtkB7Kj0eL9CjoAZk67lIarefm8TLOxksjcvKDdgNHWfssjPNfEABlNFtuAMVQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718184305; c=relaxed/simple; bh=y/Id/6mYGNFx79wmtV6dsWicXfmEWQHuHrwffEPyyjA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=N0rSFWfwQcRBSLmYZn1/172199anQt7yRKUXdkVYZT0BAN25EOW/7IKY3C4DNkOFz12+Oj6euQ3GPPmyy9yzphbKIdQP0afqbwgsuQeY1nF5u/mxZPPGP10p2KYder5CJUf7l3PhOXs2QlbTaVcn8151J81bTQcXRY2KPpmOLHQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 96FED60230176; Wed, 12 Jun 2024 17:24:49 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: jgross@suse.com, bhelgaas@google.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com Cc: x86@kernel.org, xen-devel@lists.xenproject.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?x86:=20pci:=20xen:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20ret?= Date: Wed, 12 Jun 2024 17:24:06 +0800 Message-Id: <20240612092406.39007-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ret is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- arch/x86/pci/xen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index 652cd53e77f6..67cb9dc9b2e7 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c @@ -267,7 +267,7 @@ static bool __read_mostly pci_seg_supported = true; static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) { - int ret = 0; + int ret; struct msi_desc *msidesc; msi_for_each_desc(msidesc, &dev->dev, MSI_DESC_NOTASSOCIATED) { @@ -353,7 +353,7 @@ static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) bool xen_initdom_restore_msi(struct pci_dev *dev) { - int ret = 0; + int ret; if (!xen_initial_domain()) return true; -- 2.18.2