drm/exynos: hdmi: remove unnecessary memset
authorDaniel Kurtz <djkurtz@chromium.org>
Thu, 3 Apr 2014 15:11:01 +0000 (20:41 +0530)
committerInki Dae <daeinki@gmail.com>
Sun, 1 Jun 2014 17:07:07 +0000 (02:07 +0900)
Our resources were just zalloc'ed as part of hdata.
They are already 0.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Rahul Sharma <Rahul.Sharma@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c

index 0dc9e3c9d10306188a3d8711969ad1eea69af964..f1bdf991111ca68e87fb521fda0beb400adf0137 100644 (file)
@@ -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)) {