From patchwork Fri Apr 26 05:59:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2493531 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 5C7CADF230 for ; Fri, 26 Apr 2013 12:39:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 563CAE6738 for ; Fri, 26 Apr 2013 05:39:57 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by gabe.freedesktop.org (Postfix) with ESMTP id 392CBE63A9 for ; Thu, 25 Apr 2013 23:11:38 -0700 (PDT) Received: by mail-pa0-f46.google.com with SMTP id ld11so6227pab.33 for ; Thu, 25 Apr 2013 23:11:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=9BaUQ/14/Vcl5HBsE7W3J/26IZ3lwGQqcGg7yo2MI/E=; b=efG7dnfiDxcZMdKt579vbumDDXNSk5kDcylACpv6Wso/VNj5aQTKMfFISfNX9GL6bK e7XALYsCNNQoD04+u2NaoTS7Dvcai/J0kfjMmokn38mnnoyuO1y3guceEWw0dTEhlYNz tel5ltVtTcUkmZwpOFYQ8I36rT+y+sxgajC+Fn4b3ID6MIY+AXfi4Z9wuT5df5GnykzS 3nRBIc0IHtOrWY6nTsyhbZ8YAji5s8iTPRtvqTCr5i15B1HCZZFbL96z64Qe/o+HqcH8 E0XWdNzVKecyqXUDyf/ouOhssRrqxV5xBvtlzzPvG0m/Fke7PQ2ja39g6aU+h2CQm0ko ViAw== X-Received: by 10.67.3.2 with SMTP id bs2mr29619004pad.132.1366956698104; Thu, 25 Apr 2013 23:11:38 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id aj2sm10356945pbc.1.2013.04.25.23.11.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Apr 2013 23:11:37 -0700 (PDT) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/1] drm/exynos: Remove unnecessary braces in exynos_hdmi.c Date: Fri, 26 Apr 2013 11:29:00 +0530 Message-Id: <1366955940-16915-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQlYpqUPSjyRP5uEG406rX/Ksqcamfk0vmaanX+frrjDL/gui/d6lqOlD+FdBdY7VxWi648q X-Mailman-Approved-At: Fri, 26 Apr 2013 05:38:48 -0700 Cc: sachin.kamat@linaro.org, patches@linaro.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Silences the following checkpatch warning: WARNING: braces {} are not necessary for any arm of this statement Signed-off-by: Sachin Kamat --- drivers/gpu/drm/exynos/exynos_hdmi.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 93b70e9..bbfc384 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1373,11 +1373,10 @@ static void hdmiphy_conf_apply(struct hdmi_context *hdata) return; } - if (hdata->type == HDMI_TYPE13) { + if (hdata->type == HDMI_TYPE13) hdmiphy_data = hdmiphy_v13_configs[i].conf; - } else { + else hdmiphy_data = hdmiphy_v14_configs[i].conf; - } memcpy(buffer, hdmiphy_data, 32); ret = i2c_master_send(hdata->hdmiphy_port, buffer, 32); @@ -1653,11 +1652,10 @@ static void hdmi_mode_set(void *ctx, void *mode) m->vrefresh, (m->flags & DRM_MODE_FLAG_INTERLACE) ? "INTERLACED" : "PROGERESSIVE"); - if (hdata->type == HDMI_TYPE13) { + if (hdata->type == HDMI_TYPE13) hdmi_v13_mode_set(hdata, mode); - } else { + else hdmi_v14_mode_set(hdata, mode); - } } static void hdmi_get_max_resol(void *ctx, unsigned int *width,