[PATCH 4/7] drm/exynos: hdmi: remove unnecessary memset
Rahul Sharma
rahul.sharma at samsung.com
Thu Apr 3 08:11:01 PDT 2014
From: Daniel Kurtz <djkurtz at chromium.org>
Our resources were just zalloc'ed as part of hdata.
They are already 0.
Signed-off-by: Daniel Kurtz <djkurtz at chromium.org>
Signed-off-by: Rahul Sharma <Rahul.Sharma at samsung.com>
---
drivers/gpu/drm/exynos/exynos_hdmi.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
index 5ed8973..539e603 100644
--- a/drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -2151,8 +2151,6 @@ static int hdmi_resources_init(struct hdmi_context *hdata)
DRM_DEBUG_KMS("HDMI resource init\n");
- memset(res, 0, sizeof(*res));
-
/* get clocks, power */
res->hdmi = devm_clk_get(dev, "hdmi");
if (IS_ERR(res->hdmi)) {
--
1.7.9.5
More information about the dri-devel
mailing list