Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp380922pxm; Wed, 2 Mar 2022 17:53:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMQEJFMmw+kDZf4sYV4AzdZSKPXbqAFFw2lNDGxH9Tofab4HAH+5IHCg84IPM7yve5KY6z X-Received: by 2002:a65:43c8:0:b0:378:7add:ec4c with SMTP id n8-20020a6543c8000000b003787addec4cmr18234696pgp.570.1646272403486; Wed, 02 Mar 2022 17:53:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646272403; cv=none; d=google.com; s=arc-20160816; b=rXcNRncq5hS/NF572m7OPiyEHOMD4b4KI+VZV0ln4/lzyjylUhjjyCNi2oBwTrXUA7 XFHEkEIrwrfdZ0n4hr3aEztl8GUgD/qYJPqC0U2cHCbS8jWqYo6YzQqg+TSZo02LRT0m sffHGCLFONMRhEw6pCGecng1XgcE2hlO7ft9yjzBnuhg/2irUkAsEeyasxVQ7wOjt63b 3ZcXs/H92eINRgc9JOnGvg25j6sNwTIc4CbwoC5NSYGRAkAXjcUjjWlAfg1RptJ/g743 nxQmCxmYrHk7BOxIXt7dH+lVRWU6VgPwy/7Io3G3xufzcXP+10RrLkFluChovwdtWcCi Y5GQ== 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=qd3oRhwYvw4LfBacJBSMUPs3WKYURqK064sPYXZdP+I=; b=nsjecL8y663qmw1ylpub78Z/HFXhWCpybnp91V9rEFMDJGyMXXZutTXXq0KRJwekb+ cDF1O4kZk2BNfXR7RqLuWg27ML/xdek6xB834zhH3iixF+lS6E1VZ3bE3tjA33WbkMwW NCvav8qrKh3IZBNharZ0QpMwNp3YNlGxdhBLAkef8nLRdwFHtDkswc63SQy6jwCujhir ezOwuqCMVlQKRHv8P/5dx/+eSI3C+EMlsxnRVVoSSeY/ysPIGZuVlk2xZgACVB3Esy/f 5WsOAk9vRtqg+D9IL+R5Sbsf5AqKiefIJebizyf7HRflIqoGM5ANiA+mL4O74ZJW+Upp O8Dg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r14-20020a6560ce000000b0036c644f03casi729627pgv.89.2022.03.02.17.53.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 17:53:23 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 89FDF140B7; Wed, 2 Mar 2022 17:52:31 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231492AbiCCBxL (ORCPT + 99 others); Wed, 2 Mar 2022 20:53:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231538AbiCCBxI (ORCPT ); Wed, 2 Mar 2022 20:53:08 -0500 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40DCF32065 for ; Wed, 2 Mar 2022 17:52:20 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0V64pKc2_1646272336; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V64pKc2_1646272336) by smtp.aliyun-inc.com(127.0.0.1); Thu, 03 Mar 2022 09:52:17 +0800 From: Yang Li To: airlied@linux.ie Cc: daniel@ffwll.ch, Xinhui.Pan@amd.com, christian.koenig@amd.com, alexander.deucher@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] drm/amdgpu: clean up some inconsistent indenting Date: Thu, 3 Mar 2022 09:52:15 +0800 Message-Id: <20220303015215.92536-1-yang.lee@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=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 Eliminate the follow smatch warning: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c:413 amdgpu_get_xgmi_hive() warn: inconsistent indenting Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c index 91817a31f3e1..4ff6e06babca 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c @@ -410,14 +410,14 @@ struct amdgpu_hive_info *amdgpu_get_xgmi_hive(struct amdgpu_device *adev) */ if (adev->reset_domain->type != XGMI_HIVE) { hive->reset_domain = amdgpu_reset_create_reset_domain(XGMI_HIVE, "amdgpu-reset-hive"); - if (!hive->reset_domain) { - dev_err(adev->dev, "XGMI: failed initializing reset domain for xgmi hive\n"); - ret = -ENOMEM; - kobject_put(&hive->kobj); - kfree(hive); - hive = NULL; - goto pro_end; - } + if (!hive->reset_domain) { + dev_err(adev->dev, "XGMI: failed initializing reset domain for xgmi hive\n"); + ret = -ENOMEM; + kobject_put(&hive->kobj); + kfree(hive); + hive = NULL; + goto pro_end; + } } else { amdgpu_reset_get_reset_domain(adev->reset_domain); hive->reset_domain = adev->reset_domain; -- 2.20.1.7.g153144c