Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4058513imw; Thu, 7 Jul 2022 12:01:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t6gpvhVRQfC1tUUhVa66DxPinvQxZiwnI9ms0uzu1CEFzIYy/dUEQZIpiWBDkroe0Ijzce X-Received: by 2002:a17:902:ce85:b0:16a:3db5:5966 with SMTP id f5-20020a170902ce8500b0016a3db55966mr54575296plg.79.1657220495185; Thu, 07 Jul 2022 12:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657220495; cv=none; d=google.com; s=arc-20160816; b=mYePsRFaYjNLhvcDJh+ANdrvYam9BbtG8x1UXL0Jgn2dwdULQPADQpiuVvzxH13ufj r8F/vvz6+vCcLEOST83TtrDpqNhfTNgARys/L/ju505psfMpbLve2IDMiMQuQSm5AI3q Em9nK/EmY+H1E3uz1l3bMg/u0qj2oSOLN1f/qlzseTR/zjBdVw9Dhx8b4tbumfT+QtAh ORRbeTANAv9IYuaxZIT0TmvmiHZ6oBqhLYJLZQcDl1Tqy4czn47GhnPh9jPzRAVTWwiG 0HM5r4LbJ7z0eUVhTwaUDDtyUd54hOER9okGjihwkUuZTdpJ33RXw+8OVmtnE/VxSykk JZtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xSMXSdyrhgxe/LPeOG9nwUhQ7bCN6L6RT7Z5TEvSX/k=; b=hPXwryMeJpYFAcJPbpJdZ645va5LZNAq36hTDMb7EXmHFmXKnz0qw3M3n1v4Xcwv2E z/c/0KjA6hjZkuYXflo0Hjdh4O6urskMQsk9yCV0BskubMrg+TqrMmk8ckmDL0ECKBmk 0I/Uh4JN7tRICa7x4T+aspnuYRFp2x/GTy6qdt2lzrx3VKX85kAUZ1CHRcd/PvbBkhhl Pvv58CPaId2w7b++4XXz384iyU5wTP8I+4rtxdSE9ICYqo9Gk1jR83uQVQ8DSrg0cXAM uX0kLwAxM5t/NtlEkv2CvYuOM+ouyKOVphoLOclKjTtym9kEVRivgpfEx5xcDuFJqG2a tZRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JCNjsSHG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fw2-20020a17090b128200b001efb6d190d6si6197460pjb.39.2022.07.07.12.01.23; Thu, 07 Jul 2022 12:01:35 -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=@gmail.com header.s=20210112 header.b=JCNjsSHG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236099AbiGGSRl (ORCPT + 99 others); Thu, 7 Jul 2022 14:17:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235575AbiGGSRk (ORCPT ); Thu, 7 Jul 2022 14:17:40 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A08B52A963 for ; Thu, 7 Jul 2022 11:17:39 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id n4so14566812ejz.10 for ; Thu, 07 Jul 2022 11:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xSMXSdyrhgxe/LPeOG9nwUhQ7bCN6L6RT7Z5TEvSX/k=; b=JCNjsSHGeIt/T9GRSU4+KoOf4kHWc+fTg9gE2OTI8ZhDBr/Q7oCXYPkRYVYUVZyGne XukdokHNmuNj4N0/jjkqnmwPTOYKzh6WspGHl1mffSUqDHiNMERPBqQnZov9/qk8+jqr wsJAf2a7Gr38RVsl9okaxE0FcZ93spRUaXiqJJ7MYOqiYKFi3X2NHqARrMEH+QSo7SZ/ 3H6zfhyAu5YN/F5+xok0AQuN4lUBQqT/eEp4YwSJ4UNXsk2O3wERi8lfVQ3u/ZJ2b7Jx 2SHWu1lTqP1NZDnNcNsW0b8zVR0ourvq4u58yE/ZNQzmqk+hHCiAmEke4jyg5n+CcIIi 5Ljw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xSMXSdyrhgxe/LPeOG9nwUhQ7bCN6L6RT7Z5TEvSX/k=; b=fzU15keiFYxSW+eTh8N84nxP4g+nRqxDKr/J8NQPakYvTEzVHmt7fOXSsVCp92rWT0 i//vBnr22ZYcp7HO3ooO8nBL7Pk9YOW0qwYfDFMogsKa50EWRHna6ECQUyaXiGDXwqBw /Dej1FidX6Z7oh7TP60QHJcJcUDccdRFAws9QIchOTok1NZuPE9EogS1LVfHRMn64JkJ LYiP+g46okE1MM3f91QGGHMhHyKYmQ58WkIEiNvy1nci1Unf7rHErq0ci1EVZ5kWSbiC e0Vl9GWyX93YTIyOv2KPAuOUoUMudELYRi7ul2Hl9RGqBZg2pa8uz2vQdFvOkSN/GQhk KAmA== X-Gm-Message-State: AJIora9ElXIuiVJH12U85ZJCeDKxpFRrPjMs+A4U9GKh89GuQDlQDoig SXBoP2xqFI4pFgYgJEOPO1Q/XJ1fUktfb/CNPFQ= X-Received: by 2002:a17:906:dc93:b0:726:a75b:f60f with SMTP id cs19-20020a170906dc9300b00726a75bf60fmr45516409ejc.564.1657217858197; Thu, 07 Jul 2022 11:17:38 -0700 (PDT) MIME-Version: 1.0 References: <20220707013812.64057-1-yang.lee@linux.alibaba.com> In-Reply-To: <20220707013812.64057-1-yang.lee@linux.alibaba.com> From: Alex Deucher Date: Thu, 7 Jul 2022 14:17:26 -0400 Message-ID: Subject: Re: [PATCH -next] drm/amd/display: clean up some inconsistent indenting To: Yang Li Cc: "Deucher, Alexander" , "Leo (Sunpeng) Li" , xinhui pan , "Siqueira, Rodrigo" , LKML , amd-gfx list , Dave Airlie , Maling list - DRI developers , Christian Koenig Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Applied. Thanks! Alex On Wed, Jul 6, 2022 at 9:38 PM Yang Li wrote: > > Eliminate the follow smatch warnings: > drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:405 get_bios_object_from_path_v3() warn: inconsistent indenting > drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:611 bios_parser_get_hpd_info() warn: inconsistent indenting > drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:818 bios_parser_get_device_tag() warn: inconsistent indenting > drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:1599 bios_parser_is_device_id_supported() warn: inconsistent indenting > > Signed-off-by: Yang Li > --- > .../gpu/drm/amd/display/dc/bios/bios_parser2.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c > index c332650b7048..6f514d92b401 100644 > --- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c > +++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c > @@ -402,7 +402,7 @@ static struct atom_display_object_path_v3 *get_bios_object_from_path_v3( > return NULL; > } > > - return NULL; > + return NULL; > } > > static enum bp_result bios_parser_get_i2c_info(struct dc_bios *dcb, > @@ -605,8 +605,8 @@ static enum bp_result bios_parser_get_hpd_info( > default: > object = get_bios_object(bp, id); > > - if (!object) > - return BP_RESULT_BADINPUT; > + if (!object) > + return BP_RESULT_BADINPUT; > > record = get_hpd_record(bp, object); > > @@ -810,10 +810,10 @@ static enum bp_result bios_parser_get_device_tag( > /* getBiosObject will return MXM object */ > object = get_bios_object(bp, connector_object_id); > > - if (!object) { > - BREAK_TO_DEBUGGER(); /* Invalid object id */ > - return BP_RESULT_BADINPUT; > - } > + if (!object) { > + BREAK_TO_DEBUGGER(); /* Invalid object id */ > + return BP_RESULT_BADINPUT; > + } > > info->acpi_device = 0; /* BIOS no longer provides this */ > info->dev_id = device_type_from_device_id(object->device_tag); > @@ -1596,7 +1596,7 @@ static bool bios_parser_is_device_id_supported( > break; > } > > - return false; > + return false; > } > > static uint32_t bios_parser_get_ss_entry_number( > -- > 2.20.1.7.g153144c >