Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp873622pxu; Thu, 15 Oct 2020 20:09:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeTdpIJ4xn6lHt25Mb9AR3mhXvBnglSjN8qJLnyqlFqmVWAM/ZMRDQu8wcdlnZDEnDRSZS X-Received: by 2002:a17:906:4d03:: with SMTP id r3mr1490587eju.364.1602817783743; Thu, 15 Oct 2020 20:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602817783; cv=none; d=google.com; s=arc-20160816; b=lnNzKDcECeS5dzC7JSNgqJSHQ/SvOW31IkhaLCpkgM8JulP8M5uXGCqDy/B82nRU9y jXTwjlwVR2CUvGizv6WP1fHstfXtn/pn7uEr12bH/58fELWJGCm46b5Mus1pSDCr6Ikq C8fyyvwt+/TJdHBN4W2DEnNf6qP9ZxvVefvXQToHqQ1PiuZyqtBg2MkmfcM78gA7RzYE UqkmcUZQWqwGzYAVU8lJxD2ltKzr46jSbocsz45/FkxX6MIEMG2Yd5O+KHPbQOsUWPmH EQ5C+qwmbXq71HKXiZjzVSyESbJ1oskHvgVeDcp2idv7Rej4xB0HCow3dq2xIRpWOnBv z5+g== 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:dkim-signature; bh=TzHjClAGwcBI+xdlIeWuQRRnt4We3py93TxvMi99f24=; b=0aimRchqEiBtGNnI8esngeJug1Wt1zBplQ/vZNmyWbkSZuw/whzkf2vWPPSttKMrGu t4E9h+htb9a0bPAXMwYPB4nPg2tipl60pVcoLQfwldZgzMzNdUGWmf+jEufeAAhHUo4t CzCPEY+9KwMwc5LI5bnqonk2OkcyA7cfLNLBmSXzVLoi5irWGiOOqQo5Ws9Z/Vev9syH JeQpvS1oOrEydUcre/JZFxnrIBBKLYPz6d3GleeyD1+U46my2BQwHBIgNaUhvWpMzthg U4//2YIhECnExdnFwDvTek3RlhrMcVefzIZNkzVqhPzWesGzv+hZvlMyp0pkKohIyz4i mE9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oregontracks.org header.s=fm1 header.b=Eb8SzG86; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=CpQMaTql; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si757262ejv.243.2020.10.15.20.09.22; Thu, 15 Oct 2020 20:09:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oregontracks.org header.s=fm1 header.b=Eb8SzG86; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=CpQMaTql; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733167AbgJPANY (ORCPT + 99 others); Thu, 15 Oct 2020 20:13:24 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:47461 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389741AbgJPAM3 (ORCPT ); Thu, 15 Oct 2020 20:12:29 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 5E16FB5D; Thu, 15 Oct 2020 20:12:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 15 Oct 2020 20:12:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= oregontracks.org; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=fm1; bh=TzHjClAGwcBI+xdlIeWuQRRnt4We3py93TxvMi99f24=; b=Eb8Sz G86GlciFhm1UNB/JCSF08G7eMVjK7YGE/dh42i/MjTmBJMd9Go+D0Ul0K/N5MDaW 49NdIxQqJ2YYo+hmGqiCankDTxVprwQ8t3ooXQO9FEqYxB6RrOITgMqsRyGgjmsa E/arp1D4Oo//OG+ACSEyhmTy8OyD7ZS2SGI+eLjOWnuJ9MMd4+U5WDpQnDTSygCo CtKBH/aLpDSd6C2FV6xgCiBChjUTgFGgiGio6eiu/tOHK+16ateVNsvIbuKDOH6e YwvhF01AmvFKyZUZEMTz/qiDkAUp6rBRnsyFlgn5EKzideQWlDLp+w0aFOk0TU1V IW/Psp7F3OVV/VfJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=TzHjClAGwcBI+xdlIeWuQRRnt4We3py93TxvMi99f24=; b=CpQMaTql kjv8THWmJLv6YmlpLeLai/z/Laqu7zwhD5Hhf7yxAKE/Y0oh7RuKza+fURXNksb6 36XdyZhk5C69Ynwkwu8Kh3HFgcrOF2s679kz+CN0omkfZtTUeD8XhXXrww+U9A8s SlY5oHOh9Z/gGQM+ypFbrvKD+SIeFWYFvRwilmMYq0SLMg7sfncr4+oHqC9P/q7m ppgdO9lbMcLbzxMpfPla2+5wGBaHnmeLu4KOsGZWnBGhxg6H3qWcS8Vn1DRNRN+P oy9LrMyWK8ASOrv4VbsUz4ipllVKTNs3xvhQwVP6TAK5Wo5oAvd9sSG1TbeM4xU7 +HwnYFDVpG6NmA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrieeggdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefuvggrnhcuggcumfgvlhhlvgihuceoshgvrghnvhhkrdguvghv sehorhgvghhonhhtrhgrtghkshdrohhrgheqnecuggftrfgrthhtvghrnhepkefggeektd dttdeuffffjeeihfetfffghfdugefhvdeuheeuudelheegleevheefnecuffhomhgrihhn pehkvghrnhgvlhdrohhrghenucfkphepvdegrddvtddrudegkedrgeelnecuvehluhhsth gvrhfuihiivgepieenucfrrghrrghmpehmrghilhhfrhhomhepshgvrghnvhhkrdguvghv sehorhgvghhonhhtrhgrtghkshdrohhrgh X-ME-Proxy: Received: from arch-ashland-svkelley.hsd1.or.comcast.net (c-24-20-148-49.hsd1.or.comcast.net [24.20.148.49]) by mail.messagingengine.com (Postfix) with ESMTPA id A583D306467E; Thu, 15 Oct 2020 20:12:26 -0400 (EDT) From: Sean V Kelley To: bhelgaas@google.com, Jonathan.Cameron@huawei.com, rafael.j.wysocki@intel.com, ashok.raj@intel.com, tony.luck@intel.com, sathyanarayanan.kuppuswamy@intel.com, qiuxu.zhuo@intel.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Sean V Kelley Subject: [PATCH v9 08/15] PCI/ERR: Avoid negated conditional for clarity Date: Thu, 15 Oct 2020 17:11:06 -0700 Message-Id: <20201016001113.2301761-9-seanvk.dev@oregontracks.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201016001113.2301761-1-seanvk.dev@oregontracks.org> References: <20201016001113.2301761-1-seanvk.dev@oregontracks.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean V Kelley Reverse the sense of the Root Port/Downstream Port conditional for clarity. No functional change intended. [bhelgaas: split to separate patch] Link: https://lore.kernel.org/r/20201002184735.1229220-6-seanvk.dev@oregontracks.org Signed-off-by: Sean V Kelley Signed-off-by: Bjorn Helgaas Acked-by: Jonathan Cameron --- drivers/pci/pcie/err.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pci/pcie/err.c b/drivers/pci/pcie/err.c index 46a5b84f8842..931e75f2549d 100644 --- a/drivers/pci/pcie/err.c +++ b/drivers/pci/pcie/err.c @@ -159,11 +159,11 @@ pci_ers_result_t pcie_do_recovery(struct pci_dev *dev, * Error recovery runs on all subordinates of the bridge. If the * bridge detected the error, it is cleared at the end. */ - if (!(type == PCI_EXP_TYPE_ROOT_PORT || - type == PCI_EXP_TYPE_DOWNSTREAM)) - bridge = pci_upstream_bridge(dev); - else + if (type == PCI_EXP_TYPE_ROOT_PORT || + type == PCI_EXP_TYPE_DOWNSTREAM) bridge = dev; + else + bridge = pci_upstream_bridge(dev); bus = bridge->subordinate; pci_dbg(bridge, "broadcast error_detected message\n"); -- 2.28.0