Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/exynos: remove needless error handling to property.

This patch removes property error handling. because property couldn't be NULL.

Signed-off-by: Eunchul Kim <chulspro.kim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>

authored by

Eunchul Kim and committed by
Inki Dae
0ca824c7 7259c3d6

-29
-12
drivers/gpu/drm/exynos/exynos_drm_fimc.c
··· 705 705 } 706 706 707 707 property = &c_node->property; 708 - if (!property) { 709 - DRM_ERROR("failed to get property.\n"); 710 - return -EINVAL; 711 - } 712 708 713 709 DRM_DEBUG_KMS("%s:prop_id[%d]buf_id[%d]buf_type[%d]\n", __func__, 714 710 property->prop_id, buf_id, buf_type); ··· 1237 1241 } 1238 1242 1239 1243 property = &c_node->property; 1240 - if (!property) { 1241 - DRM_ERROR("failed to get property.\n"); 1242 - return -EINVAL; 1243 - } 1244 1244 1245 1245 DRM_DEBUG_KMS("%s:prop_id[%d]buf_id[%d]buf_type[%d]\n", __func__, 1246 1246 property->prop_id, buf_id, buf_type); ··· 1565 1573 } 1566 1574 1567 1575 property = &c_node->property; 1568 - if (!property) { 1569 - DRM_ERROR("failed to get property.\n"); 1570 - return -EINVAL; 1571 - } 1572 1576 1573 1577 fimc_handle_irq(ctx, true, false, true); 1574 1578
-12
drivers/gpu/drm/exynos/exynos_drm_gsc.c
··· 720 720 } 721 721 722 722 property = &c_node->property; 723 - if (!property) { 724 - DRM_ERROR("failed to get property.\n"); 725 - return -EFAULT; 726 - } 727 723 728 724 DRM_DEBUG_KMS("%s:prop_id[%d]buf_id[%d]buf_type[%d]\n", __func__, 729 725 property->prop_id, buf_id, buf_type); ··· 1176 1180 } 1177 1181 1178 1182 property = &c_node->property; 1179 - if (!property) { 1180 - DRM_ERROR("failed to get property.\n"); 1181 - return -EFAULT; 1182 - } 1183 1183 1184 1184 DRM_DEBUG_KMS("%s:prop_id[%d]buf_id[%d]buf_type[%d]\n", __func__, 1185 1185 property->prop_id, buf_id, buf_type); ··· 1557 1565 } 1558 1566 1559 1567 property = &c_node->property; 1560 - if (!property) { 1561 - DRM_ERROR("failed to get property.\n"); 1562 - return -EINVAL; 1563 - } 1564 1568 1565 1569 gsc_handle_irq(ctx, true, false, true); 1566 1570
-5
drivers/gpu/drm/exynos/exynos_drm_ipp.c
··· 1487 1487 mutex_lock(&c_node->cmd_lock); 1488 1488 1489 1489 property = &c_node->property; 1490 - if (!property) { 1491 - DRM_ERROR("failed to get property:prop_id[%d]\n", 1492 - c_node->property.prop_id); 1493 - goto err_unlock; 1494 - } 1495 1490 1496 1491 switch (cmd_work->ctrl) { 1497 1492 case IPP_CTRL_PLAY: