Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp586606rwo; Wed, 2 Aug 2023 00:23:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlG5g52MTWQlXZAMKv6ekSpSIB4F+8R5kVzjZ6FcgxgRgRPYz2xkmLecwnHQZlJ/Fjad9hGt X-Received: by 2002:a05:6402:324:b0:522:595f:5a29 with SMTP id q4-20020a056402032400b00522595f5a29mr4447336edw.29.1690961000209; Wed, 02 Aug 2023 00:23:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690961000; cv=none; d=google.com; s=arc-20160816; b=o1DZi1mRY5DDf/RB+z1qhs4n/mK5vad7AY+lhqCJ839YuDgwWT8Jtao2v6xozxJl7u /29HAr6C2kM2Lc7ZS+RwbGkAU+SCUzGES9bGh0u4v4lxRuWIXZpbuVyZ3q8PBOrkB/pE /6Ft43ZXCPfg+cDvIhN1dR19NOkrTXAMMHDrlksUa4Q/dH7yTyziraxoZaroD/5HBnbc F4nqNgCKhqRWsbEuKS8DfxC31LiVsYjzlKc/z2eQdvkvLz8XQpy2ssqJbrIlKpb8FQZe qZaRvAo58SF/ucKvk+4UEOLBpTG3DQwB9+hCvejToWzqBk8KbqUdQn6UG0srEk5RJBpI zgjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=dJm859MiBhM0yGjbgMa5Gq0jwWlBdsvYqpcvcLPNkJQ=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=j68EzZ+gy9zxfMYVV57zhncsgwFvQNgRI5PFuNU//O3+zZDx8dzv2ydPTJOb07V79b WH/g3IX1PQndMfpYKUHyKJUpS9M7Wv4EGqCbqUN9BWmFQJQRb+oirWxa18OESQ9VAhfh DJn+8rp/coBmJR84/KvSZlmDAb9cB4MhHgwo6U4Mg2pbLJ9jEQkSD/A1Lc0beIvyC8pQ C5HQD8l6ESP8r/BctvzpBRGxkX6fmxcahfAkVJuHsQIGGZ2rhaN4+RWULi8HQBc2bxoG +G80ZoiiEDagsevhJga021jxIYrVlcG3EuB92wu4MWXdFMGrZ27nDi3C91Zt2fK37fUa uoTA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020aa7d712000000b0052280469cc9si6435753edq.159.2023.08.02.00.22.56; Wed, 02 Aug 2023 00:23:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231613AbjHBHGp (ORCPT + 99 others); Wed, 2 Aug 2023 03:06:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230212AbjHBHGn (ORCPT ); Wed, 2 Aug 2023 03:06:43 -0400 Received: from out28-123.mail.aliyun.com (out28-123.mail.aliyun.com [115.124.28.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 947E91B4 for ; Wed, 2 Aug 2023 00:06:42 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.4053487|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.00345508-0.000378098-0.996167;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047207;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6aqPgd_1690959995; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6aqPgd_1690959995) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 15:06:36 +0800 From: Ran Sun To: alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amdgpu: Clean up errors in mxgpu_nv.c Date: Wed, 2 Aug 2023 07:06:32 +0000 Message-Id: <20230802070632.12626-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Fix the following errors reported by checkpatch: ERROR: else should follow close brace '}' ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c index cae1aaa4ddb6..6a68ee946f1c 100644 --- a/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c +++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c @@ -183,12 +183,10 @@ static int xgpu_nv_send_access_requests(struct amdgpu_device *adev, if (req != IDH_REQ_GPU_INIT_DATA) { pr_err("Doesn't get msg:%d from pf, error=%d\n", event, r); return r; - } - else /* host doesn't support REQ_GPU_INIT_DATA handshake */ + } else /* host doesn't support REQ_GPU_INIT_DATA handshake */ adev->virt.req_init_data_ver = 0; } else { - if (req == IDH_REQ_GPU_INIT_DATA) - { + if (req == IDH_REQ_GPU_INIT_DATA) { adev->virt.req_init_data_ver = RREG32_NO_KIQ(mmMAILBOX_MSGBUF_RCV_DW1); -- 2.17.1