Commit 73b00232 authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Inki Dae

drm/exynos/ipp: remove temporary variable

There is no reason to allocate intermediate variable.
Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent a8ea17f6
...@@ -680,15 +680,14 @@ static struct drm_exynos_ipp_mem_node ...@@ -680,15 +680,14 @@ static struct drm_exynos_ipp_mem_node
struct drm_exynos_ipp_queue_buf *qbuf) struct drm_exynos_ipp_queue_buf *qbuf)
{ {
struct drm_exynos_ipp_mem_node *m_node; struct drm_exynos_ipp_mem_node *m_node;
struct drm_exynos_ipp_buf_info buf_info; struct drm_exynos_ipp_buf_info *buf_info;
int i; int i;
m_node = kzalloc(sizeof(*m_node), GFP_KERNEL); m_node = kzalloc(sizeof(*m_node), GFP_KERNEL);
if (!m_node) if (!m_node)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
/* clear base address for error handling */ buf_info = &m_node->buf_info;
memset(&buf_info, 0x0, sizeof(buf_info));
/* operations, buffer id */ /* operations, buffer id */
m_node->ops_id = qbuf->ops_id; m_node->ops_id = qbuf->ops_id;
...@@ -712,15 +711,14 @@ static struct drm_exynos_ipp_mem_node ...@@ -712,15 +711,14 @@ static struct drm_exynos_ipp_mem_node
goto err_clear; goto err_clear;
} }
buf_info.handles[i] = qbuf->handle[i]; buf_info->handles[i] = qbuf->handle[i];
buf_info.base[i] = *addr; buf_info->base[i] = *addr;
DRM_DEBUG_KMS("i[%d]base[0x%x]hd[0x%x]\n", DRM_DEBUG_KMS("i[%d]base[0x%x]hd[0x%lx]\n", i,
i, buf_info.base[i], (int)buf_info.handles[i]); buf_info->base[i], buf_info->handles[i]);
} }
} }
m_node->filp = file; m_node->filp = file;
m_node->buf_info = buf_info;
mutex_lock(&c_node->mem_lock); mutex_lock(&c_node->mem_lock);
list_add_tail(&m_node->list, &c_node->mem_list[qbuf->ops_id]); list_add_tail(&m_node->list, &c_node->mem_list[qbuf->ops_id]);
mutex_unlock(&c_node->mem_lock); mutex_unlock(&c_node->mem_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment