Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp391670rwb; Wed, 16 Nov 2022 02:05:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Uw9M8PxhH47h4jfqgku2+SlobdamdiM1kn1ZMinuh2uubFlH3iNYpwy03HO8k74a+wrQ/ X-Received: by 2002:aa7:8dcd:0:b0:56c:674a:16f0 with SMTP id j13-20020aa78dcd000000b0056c674a16f0mr22900473pfr.10.1668593147817; Wed, 16 Nov 2022 02:05:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668593147; cv=none; d=google.com; s=arc-20160816; b=YGikhSd2xuYKQp8O/HuHI0nYbWniwoENLmVfuNsXGdAO0wV4zdx6c/r5mF9ujtc/ss HUjVwHQbifSyUFl+WpsgeweL3nH1rL2cXSzFz+b+GnJ08BX4p8lcJKx9VeRUKMH80fzT 3Ih1R+xSHjspXCbR7Nn8vM61GNnsppOq9RODIaMRkk9jZdftJrO9FVF+nmnQKofUPhUQ n1zFuVbTgKUvlEeOcPWVgs/EiDEr6YXkM0nau5t3H7Vl1ACO7TLdZ8s2HjNpIG4tY1Gz R9piw/r2DYCOFgtRmuP9DTD0Q+V7OJV8nARtJxjyG8uk2RLJ+VxPXWeKWQ3sdYaXMzWj qoGA== 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=l/PxeZy49382H5QW8D6PX4cDHclI8Wq40+7a9/x9gVw=; b=zalKB2p0G8splduaUVZqjNm7Jc38GYURYEDVRHxrJ17nJpdQ4inJY6R1QuF5BXwFzs im7P42m45UVvP4D+3NtDd4NEwBIWo2JMDZvlqR9xbwoGXr16r1sArulAhaYiDjd9+0Zq JNxulJQlgzVSgCMaYFaeYdkecGXeWKaUPrP63w1wFYTcS3OLxKYiIhh4lZC3zUOxEcah 2prhBQgmicBBsEiOPSLMm5yyoEKCYwycJmo/bos2j9Rh0PbHAqrUjGcDchvsD57eFBFG 3V3h3ITRoBOJMFs4gzgHrMql5Uv+Gh0ONVykL2f9PNTtiNcMxEWW95taVRNsyhLBta67 ThDA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a637e0e000000b0047694108a93si5021765pgc.306.2022.11.16.02.05.35; Wed, 16 Nov 2022 02:05:47 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232531AbiKPJYD (ORCPT + 91 others); Wed, 16 Nov 2022 04:24:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232256AbiKPJX5 (ORCPT ); Wed, 16 Nov 2022 04:23:57 -0500 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4C33FD7; Wed, 16 Nov 2022 01:23:54 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VUxL0gu_1668590627; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VUxL0gu_1668590627) by smtp.aliyun-inc.com; Wed, 16 Nov 2022 17:23:52 +0800 From: Jiapeng Chong To: nirmal.patel@linux.intel.com Cc: jonathan.derrick@linux.dev, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH v2] PCI: vmd: Clean up some inconsistent indenting Date: Wed, 16 Nov 2022 17:23:45 +0800 Message-Id: <20221116092345.19983-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 No functional modification involved. drivers/pci/controller/vmd.c:983 vmd_resume() warn: inconsistent indenting. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3074 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changs in v2: -Simplify if else statements to vmd_set_msi_remapping(vmd, !!vmd->irq_domain). drivers/pci/controller/vmd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c index 98e0746e681c..9bced822d00a 100644 --- a/drivers/pci/controller/vmd.c +++ b/drivers/pci/controller/vmd.c @@ -980,10 +980,7 @@ static int vmd_resume(struct device *dev) struct vmd_dev *vmd = pci_get_drvdata(pdev); int err, i; - if (vmd->irq_domain) - vmd_set_msi_remapping(vmd, true); - else - vmd_set_msi_remapping(vmd, false); + vmd_set_msi_remapping(vmd, !!vmd->irq_domain); for (i = 0; i < vmd->msix_count; i++) { err = devm_request_irq(dev, vmd->irqs[i].virq, -- 2.20.1.7.g153144c