From: Daniel Kurtz Date: Thu, 3 Apr 2014 15:11:01 +0000 (+0530) Subject: drm/exynos: hdmi: remove unnecessary memset X-Git-Tag: firefly_0821_release~176^2~3773^2~17^2~41 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=47d173ffb2ed4be528940aa10f5e48811aac014b;p=firefly-linux-kernel-4.4.55.git 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 --- 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)) {