Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4957614imm; Tue, 16 Oct 2018 02:56:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV619lW7lJr2y9KSlebXTIBI/r9WmKLonICExQZjcMA6Y2HC+QbP1Fm5Vh76fQ/gvQggztsPX X-Received: by 2002:a63:545c:: with SMTP id e28-v6mr19633112pgm.316.1539683784700; Tue, 16 Oct 2018 02:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539683784; cv=none; d=google.com; s=arc-20160816; b=I7noO0+Bd5H5iDzwAX1udYxlwEzT4eqsscDmsmPqqRMi9g0WXUlGbbjxZKjh+ea58A zjq85t3xK5p3E4NbDPzGIOMV9wP7yVbQ9hZ+cJWlS1ZS0QQT715IOY2PWwEvpK+bXQVx GnGb2e9rrcqAcEA2jeNsGbigt7gnxCJAPoeQ5DBTNPA+vGG5Kv3EVn/ah7MM2AQjJg9F ntAV8XQWpsUijms0ggjXxwYSyrkgSYx6+Vv689nr5UjL8v7yXB6Qj0Ly30RijJpYHT6e a3jVqt0Cx9/uIUrWmuLB4eISq9qmKWgwIzmXyYE/ysvH47Vs6TFrvQmjNwMjOSII5imm E59w== 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:mime-version :message-id:date:subject:cc:to:from; bh=EWfSy3bpdIvMuz/eQCOtPTH2xGSz0wz4Nvg001FnuWM=; b=pbx8PKSamICg/qnK8YJw6/XWK8F5lbW7q3xcH8DSw2W4B1S3LNZLdnUsV0tw/JyB2s D9U+kL2l/NaP8sabOgKXB/bqyz2X4NSYfIqL2pxh5wVidIOGnGccYnPDv79kzdipzrtp sQJZq4JzJSUSIadbbd8yMp+FbogUWh/trzETprTkJD3JnKS33sWG+NVXu5Hj1+WZ25KT YlYl72swd1tYo9Ba9nvpjffW3KOyUgca8JAHTfh+PNp7NXM13xpLEoxzfMsh9r98Ge3X zq3/708LXSpCrUOxdzJriAgMh6mcrdWEHB2+SlWhuF8MjcLrDWjKja/5U1kjK/HENZi2 z82A== 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 l33-v6si13320564pld.397.2018.10.16.02.56.06; Tue, 16 Oct 2018 02:56:24 -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 S1727031AbeJPRnY (ORCPT + 99 others); Tue, 16 Oct 2018 13:43:24 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:40298 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbeJPRnY (ORCPT ); Tue, 16 Oct 2018 13:43:24 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id AB9EC263AA6 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: kernel@collabora.com, Andrzej Hajda , Daniel Vetter , Marek Szyprowski , Archit Taneja , zain wang , dri-devel@lists.freedesktop.org, Lin Huang , David Airlie , Laurent Pinchart , Sean Paul , Jeffy Chen Subject: [PATCH v2] drm/bridge: analogix_dp: Fix misleading indentation reported by smatch Date: Tue, 16 Oct 2018 11:53:36 +0200 Message-Id: <20181016095336.15656-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch avoids that building the bridge/analogix source code with smatch triggers complaints about inconsistent indenting. It also fixes a typo in DRM_ERROR message, attch is replaced for attach. Signed-off-by: Enric Balletbo i Serra Reviewed-by: Laurent Pinchart --- Changes in v2: - Fix typo s/attch/attach/ - Add Reviewed-by Laurent Pinchart 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..3987d5fc9c0d 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 attach func\n"); + return ret; + } } if (dp->plat_data->panel) { -- 2.19.1