Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5378217rwb; Tue, 1 Aug 2023 01:14:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlGHY1aejKbVatoNEScuIJ3kKoO5eTGrQwAPOAgR+oip3Co8ZyuQ1UUPtr83fwqWMI2Y0EEk X-Received: by 2002:a05:6512:2082:b0:4fe:f2e:6cfd with SMTP id t2-20020a056512208200b004fe0f2e6cfdmr1488692lfr.62.1690877678940; Tue, 01 Aug 2023 01:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690877678; cv=none; d=google.com; s=arc-20160816; b=ObHDBLIaAMYeXBgM1/5RqfhHqmeCn+DJbtEPoNjC4cx38XoWKcfBNDnj++J0f8iH5s jZy6VoANv/mpE98+A3aYsx4MCTO1UiT0Z3RKv2QWn2iezg36DO5i7Hhb/9+nhDHk+GBu 2iErAyV3Wh13jErg2jPyn46WMmvdFxieoZi/ziCnvlHWLO/iUDAVrZNxodAUuN3voFcd xE9NPLuf+yBgI5K/UDLJX13Wa5ExgkG0ZutJnOE7SyBQleJzzLhS6McVy8Q/MgZZbgnb Zt4IuIaIy6D4IgXQn/KUAVfbWtsRpvLi6LMEuAIbTQBIPl6qMzQN0HXasPjhW+rExvs1 /8rg== 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=X8b/WfYPAs9vG6i+iWH0920AKxUIkyQtr8EHVLyuOzw=; fh=uzQ2njGvRnNicAzoECU0n2pvDAEB0craVlwUtEtLFVc=; b=ujWiOHo4PfIhD5HHLpW4oa3gABkxaAmngUYW4zwLMuLh2AUmOPtco5AgCGnyBDwns4 +uY7RV8u1BOPd+lLVAtZXFyw4KEPSbuE8h28Rzhkv+iq9RsAMnESmCc7oioEt+uJj1hX Hu99aiOjKDpezpL7PXrqBs0SGxNL/oRLJgV3mwPp0Yg8WSqBirTnOEGAk25A4PD8TLgB x3HT5i1s4tRiSuvw+VFFjeLI7Hqbl8/zTE+kqYfuZw5cyZKjLiswycMwvLyNqo4xn1jn row5CiYFjP5f3/DEsEvpRGjQ13D/5bLBKzu/joiFol33ojTBCMOeRDpRQOdbiX7ioxay ydmw== 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 l6-20020a056402028600b00522294d0aa0si8171166edv.590.2023.08.01.01.14.14; Tue, 01 Aug 2023 01:14:38 -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 S230372AbjHAIAD (ORCPT + 99 others); Tue, 1 Aug 2023 04:00:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjHAIAB (ORCPT ); Tue, 1 Aug 2023 04:00:01 -0400 Received: from out28-197.mail.aliyun.com (out28-197.mail.aliyun.com [115.124.28.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A33711729 for ; Tue, 1 Aug 2023 01:00:00 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.536621|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.0202322-0.000328368-0.979439;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047208;MF=sunran001@208suo.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.U5lph8q_1690876792; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5lph8q_1690876792) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 15:59:54 +0800 From: Ran Sun To: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch 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 smu_helper.c Date: Tue, 1 Aug 2023 07:59:51 +0000 Message-Id: <20230801075951.6467-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_H4,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: spaces required around that '=' (ctx:VxV) ERROR: spaces required around that '<' (ctx:VxV) Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c index d0b1ab6c4523..79a566f3564a 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c @@ -696,7 +696,7 @@ int smu_get_voltage_dependency_table_ppt_v1( return -EINVAL); dep_table->count = allowed_dep_table->count; - for (i=0; icount; i++) { + for (i = 0; i < dep_table->count; i++) { dep_table->entries[i].clk = allowed_dep_table->entries[i].clk; dep_table->entries[i].vddInd = allowed_dep_table->entries[i].vddInd; dep_table->entries[i].vdd_offset = allowed_dep_table->entries[i].vdd_offset; -- 2.17.1