Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1865303rwb; Fri, 19 Aug 2022 10:40:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR6reN/gBo8n62TYT+Bsa9NhmeBCdqKiT90fNm4t0MNUSiP6NIv8GlcD5QDDyRC3h8ne9hZm X-Received: by 2002:a17:902:ba8a:b0:172:baa0:5676 with SMTP id k10-20020a170902ba8a00b00172baa05676mr6720708pls.64.1660930823356; Fri, 19 Aug 2022 10:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930823; cv=none; d=google.com; s=arc-20160816; b=ctrtukl5NxyyeB5s7+QOL+PTEo2KJJliKxBUSE9gmuutnwesJHVPfFFxXW2Nw9gAJO x1jXOIpO2s8MJJ0Oxmc6v1yqnDucotOSMAYXWeY4MITRzddehqcaRdx7pr98Y7UzSJ07 BPowCmYQcNEewMVsNn8b3VVpEqLKhi2E8CWnvmvDRv1BlmyLVriAISrZJWzpp7z2QxM7 E2x+DuoAdbbAiZQrBwzE1CT6Bz7vHr7QIyKtHalbCpjr+NDSl8+EXO72hVK/+Wn4T2av B1Yw09LPbAP65WSap/kjKgwWbUmeBK0D2jTM+L3kiCmtCeoDvzvxY8K8g7RiM1l/iHUQ 585g== 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=1qTgPoKsDC0on5p/iZ7sm+/QWiFiYR+c42SkdTYZazc=; b=PiFsCFfJKJQVQ4eXnuIPNfIZ05Eu/bJEfYYjgUBy9Du1Qp2aLM0OyytMO1NCKoblsp DCUDPwMhdHXg0RMU6RYOE6zORWYo17x5QYsROMCBLEBvV0ukheT2Yt0utm+ZqS5+LrQ+ O3lmmJsNW4zpiV+6x8W2iwvTgwK/alA7LKjaqbFXP23tRBgYGTNPRzSjeJAHB8GJjCAZ RJXOlAWttkC4y6WcWQkXx8PZmY3WBDlF7hWz2uxBxP/E2eTglHtmfLpQ0zOQ07wpj7pY 6cUEWZvBCk03EW/kRcIivmUnV3izGxA8ts4BrMVjBtqR6wg33/jz79W7LmHuP4W4IuWN tpNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EuaGYDLg; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020a633604000000b0041dd0c35c54si2687465pga.47.2022.08.19.10.40.11; Fri, 19 Aug 2022 10:40:23 -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=@linuxfoundation.org header.s=korg header.b=EuaGYDLg; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354213AbiHSQtR (ORCPT + 99 others); Fri, 19 Aug 2022 12:49:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353987AbiHSQqx (ORCPT ); Fri, 19 Aug 2022 12:46:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91289113DCE; Fri, 19 Aug 2022 09:12:30 -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 dfw.source.kernel.org (Postfix) with ESMTPS id D8E5161898; Fri, 19 Aug 2022 16:11:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8E4BC433D6; Fri, 19 Aug 2022 16:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660925497; bh=mWUWAxCqeA3FTq772JsNj5qWEE9jE6doiOyela3xc4k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EuaGYDLgJwt0ABtNTWTH+E0WgplkEi8vJLf4l5SODRk0nlKm17S+NT2GjN/v5wdfp zUbC5XA8fpNvkcxOEx5NrsgVRd6mbqtl+thefnmmVXF5X/Jqo8/EvJU+oW2S/BRfqA e31IvPusYOwKPYIxh4tktK85ormIuOYvY8k2yHpw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean V Kelley , Bjorn Helgaas , Kuppuswamy Sathyanarayanan , Jonathan Cameron , Sasha Levin Subject: [PATCH 5.10 479/545] PCI/ERR: Avoid negated conditional for clarity Date: Fri, 19 Aug 2022 17:44:09 +0200 Message-Id: <20220819153850.862483452@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Sean V Kelley [ Upstream commit 3d7d8fc78f4b504819882278fcfe10784eb985fa ] Reverse the sense of the Root Port/Downstream Port conditional for clarity. No functional change intended. Link: https://lore.kernel.org/r/20201121001036.8560-9-sean.v.kelley@intel.com Tested-by: Jonathan Cameron # non-native/no RCEC Signed-off-by: Sean V Kelley Signed-off-by: Bjorn Helgaas Reviewed-by: Kuppuswamy Sathyanarayanan Acked-by: Jonathan Cameron Signed-off-by: Sasha Levin --- 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.35.1