Commit 0ca824c7 authored by Eunchul Kim's avatar Eunchul Kim Committed by Inki Dae

drm/exynos: remove needless error handling to property.

This patch removes property error handling. because property couldn't be NULL.
Signed-off-by: default avatarEunchul Kim <chulspro.kim@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 7259c3d6
...@@ -705,10 +705,6 @@ static int fimc_src_set_addr(struct device *dev, ...@@ -705,10 +705,6 @@ static int fimc_src_set_addr(struct device *dev,
} }
property = &c_node->property; property = &c_node->property;
if (!property) {
DRM_ERROR("failed to get property.\n");
return -EINVAL;
}
DRM_DEBUG_KMS("%s:prop_id[%d]buf_id[%d]buf_type[%d]\n", __func__, DRM_DEBUG_KMS("%s:prop_id[%d]buf_id[%d]buf_type[%d]\n", __func__,
property->prop_id, buf_id, buf_type); property->prop_id, buf_id, buf_type);
...@@ -1241,10 +1237,6 @@ static int fimc_dst_set_addr(struct device *dev, ...@@ -1241,10 +1237,6 @@ static int fimc_dst_set_addr(struct device *dev,
} }
property = &c_node->property; property = &c_node->property;
if (!property) {
DRM_ERROR("failed to get property.\n");
return -EINVAL;
}
DRM_DEBUG_KMS("%s:prop_id[%d]buf_id[%d]buf_type[%d]\n", __func__, DRM_DEBUG_KMS("%s:prop_id[%d]buf_id[%d]buf_type[%d]\n", __func__,
property->prop_id, buf_id, buf_type); property->prop_id, buf_id, buf_type);
...@@ -1573,10 +1565,6 @@ static int fimc_ippdrv_start(struct device *dev, enum drm_exynos_ipp_cmd cmd) ...@@ -1573,10 +1565,6 @@ static int fimc_ippdrv_start(struct device *dev, enum drm_exynos_ipp_cmd cmd)
} }
property = &c_node->property; property = &c_node->property;
if (!property) {
DRM_ERROR("failed to get property.\n");
return -EINVAL;
}
fimc_handle_irq(ctx, true, false, true); fimc_handle_irq(ctx, true, false, true);
......
...@@ -720,10 +720,6 @@ static int gsc_src_set_addr(struct device *dev, ...@@ -720,10 +720,6 @@ static int gsc_src_set_addr(struct device *dev,
} }
property = &c_node->property; property = &c_node->property;
if (!property) {
DRM_ERROR("failed to get property.\n");
return -EFAULT;
}
DRM_DEBUG_KMS("%s:prop_id[%d]buf_id[%d]buf_type[%d]\n", __func__, DRM_DEBUG_KMS("%s:prop_id[%d]buf_id[%d]buf_type[%d]\n", __func__,
property->prop_id, buf_id, buf_type); property->prop_id, buf_id, buf_type);
...@@ -1180,10 +1176,6 @@ static int gsc_dst_set_addr(struct device *dev, ...@@ -1180,10 +1176,6 @@ static int gsc_dst_set_addr(struct device *dev,
} }
property = &c_node->property; property = &c_node->property;
if (!property) {
DRM_ERROR("failed to get property.\n");
return -EFAULT;
}
DRM_DEBUG_KMS("%s:prop_id[%d]buf_id[%d]buf_type[%d]\n", __func__, DRM_DEBUG_KMS("%s:prop_id[%d]buf_id[%d]buf_type[%d]\n", __func__,
property->prop_id, buf_id, buf_type); property->prop_id, buf_id, buf_type);
...@@ -1565,10 +1557,6 @@ static int gsc_ippdrv_start(struct device *dev, enum drm_exynos_ipp_cmd cmd) ...@@ -1565,10 +1557,6 @@ static int gsc_ippdrv_start(struct device *dev, enum drm_exynos_ipp_cmd cmd)
} }
property = &c_node->property; property = &c_node->property;
if (!property) {
DRM_ERROR("failed to get property.\n");
return -EINVAL;
}
gsc_handle_irq(ctx, true, false, true); gsc_handle_irq(ctx, true, false, true);
......
...@@ -1487,11 +1487,6 @@ void ipp_sched_cmd(struct work_struct *work) ...@@ -1487,11 +1487,6 @@ void ipp_sched_cmd(struct work_struct *work)
mutex_lock(&c_node->cmd_lock); mutex_lock(&c_node->cmd_lock);
property = &c_node->property; property = &c_node->property;
if (!property) {
DRM_ERROR("failed to get property:prop_id[%d]\n",
c_node->property.prop_id);
goto err_unlock;
}
switch (cmd_work->ctrl) { switch (cmd_work->ctrl) {
case IPP_CTRL_PLAY: case IPP_CTRL_PLAY:
......
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