drm/bridge: analogix_dp: Fix misleading indentation reported by smatch
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 16 Oct 2018 09:53:36 +0000 (11:53 +0200)
committerAndrzej Hajda <a.hajda@samsung.com>
Mon, 29 Oct 2018 13:47:39 +0000 (14:47 +0100)
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 <enric.balletbo@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181016095336.15656-1-enric.balletbo@collabora.com
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c

index 2f21d3b6850b784d60b0d3ad802517635d4b7d63..753e96129ab7a63355d3d50e322780f563e76684 100644 (file)
@@ -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) {