Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4950190imm; Tue, 16 Oct 2018 02:46:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV610/HQLtvznD4tiKdWc8b4zdWqztDn5afK3K/L6nAv1p+JAKPNRvNCS2ADdQdyHUDPhrd1S X-Received: by 2002:a63:4b44:: with SMTP id k4-v6mr19463576pgl.51.1539683192310; Tue, 16 Oct 2018 02:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539683192; cv=none; d=google.com; s=arc-20160816; b=au1+M2++xGTdFUYX/GYeSukeg4qnlxqx75Tvb8V+d5vnTVraSmod0ezZzS/4JNNJJb MnzgoJDMrnJD3H9wwmSJIOPcNDhjQyAad3VJpjMhz/ZeFte1CMnzmLzWWGoqqH9FZ2My fulICJraXf27ihazDBtPBea31jhAIjYA6DR0MFHr/O7bb4iYmvf3/1HNZSK+ly5kU6gi 1vRigC6DMOZPkfS0XL427dCY0+jTA3rZQ1cFeamijKR3RoqWK7Ml/A2H40kz9pkW8qfQ UlDVj9CJMvtgSUQqTw6Oh6KilU21KZVpIDwS1t7Wy47Mqv6VR2RH5jXRQ0eD6omH1Bku 4UGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=bEClGrFB16m4A5YmiwpXqJOVZDyCW6+D/qZRgGIk8jg=; b=nFvqOvhFZXVUzLcTxlrTwNHwfdDhr8mEOKUpOMpbjD2WyHh61J2dH//4V9loRZMCOJ c/zfShTYoXXh8MjAvtrtB+/1ooVUv8SIadpLmwsmlf02iqKfjH2XLJxEWUorGyqRSqk7 o2ZoheRAfuXvfhfyMscOymZmnSHocyitT94hQSYHZNN6HLlW6oOycodjJiu6sA7tXd7F UFSRuR0mbF6ZBvfbcJhG5Vf7+WOFy0P+LePpnA9c3/SGh31v9OUxJ1M1IZVsJulTHKlE MWGPAS9ndNtwOa3tTcszRXLpS3cJuN7XSUiFboA9Uvp6SHingxkd80grlimxHwsPFhqn WKUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13-v6si14997401pfc.149.2018.10.16.02.46.13; Tue, 16 Oct 2018 02:46:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727124AbeJPRdJ (ORCPT + 99 others); Tue, 16 Oct 2018 13:33:09 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:40194 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbeJPRdJ (ORCPT ); Tue, 16 Oct 2018 13:33:09 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 74076260B5F Subject: Re: [PATCH] drm/bridge: analogix_dp: Fix misleading indentation reported by smatch To: Laurent Pinchart Cc: linux-kernel@vger.kernel.org, kernel@collabora.com, Andrzej Hajda , Daniel Vetter , Marek Szyprowski , Archit Taneja , zain wang , dri-devel@lists.freedesktop.org, Lin Huang , Douglas Anderson , David Airlie , Sean Paul , Jeffy Chen References: <20181013111844.22183-1-enric.balletbo@collabora.com> <3089039.JAYFEciPKB@avalon> From: Enric Balletbo i Serra Message-ID: <2f21f4ab-cd03-3286-084b-24b51502d6ba@collabora.com> Date: Tue, 16 Oct 2018 11:43:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <3089039.JAYFEciPKB@avalon> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ho Laurent, On 16/10/18 01:11, Laurent Pinchart wrote: > Hi Enric, > > Thank you for the patch. > > On Saturday, 13 October 2018 14:18:44 EEST Enric Balletbo i Serra wrote: >> This patch avoids that building the bridge/analogix source code with >> smatch triggers complaints about inconsistent indenting. >> >> Signed-off-by: Enric Balletbo i Serra >> --- >> >> drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 12 ++++++------ >> 1 file changed, 6 insertions(+), 6 deletions(-) >> >> diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c >> b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index >> d68986cea132..75e2649d7515 100644 >> --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c >> +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c >> @@ -1219,12 +1219,12 @@ static int analogix_dp_bridge_attach(struct >> drm_bridge *bridge) * plat_data->attch return, that's why we record the >> connector >> * point after plat attached. >> */ >> - if (dp->plat_data->attach) { >> - ret = dp->plat_data->attach(dp->plat_data, bridge, connector); >> - if (ret) { >> - DRM_ERROR("Failed at platform attch func\n"); >> - return ret; >> - } >> + if (dp->plat_data->attach) { >> + ret = dp->plat_data->attach(dp->plat_data, bridge, connector); >> + if (ret) { >> + DRM_ERROR("Failed at platform attch func\n"); >> + return ret; >> + } >> } > > This looks good to me. While at it, could you s/attch/attach/ ? With that > fixed, Sure, will do now, just preparing v2. > > Reviewed-by: Laurent Pinchart > >> if (dp->plat_data->panel) { >