From 47d173ffb2ed4be528940aa10f5e48811aac014b Mon Sep 17 00:00:00 2001 From: Daniel Kurtz Date: Thu, 3 Apr 2014 20:41:01 +0530 Subject: [PATCH] drm/exynos: hdmi: remove unnecessary memset Our resources were just zalloc'ed as part of hdata. They are already 0. Signed-off-by: Daniel Kurtz Signed-off-by: Rahul Sharma Signed-off-by: Inki Dae --- 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 0dc9e3c9d103..f1bdf991111c 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1946,8 +1946,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)) { -- 2.20.1