drm/exynos/ipp: remove redundant messages
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 3 Jul 2014 13:10:35 +0000 (15:10 +0200)
committerInki Dae <daeinki@gmail.com>
Sun, 3 Aug 2014 07:52:19 +0000 (16:52 +0900)
In case of error callback prints already corresponding message.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_ipp.c

index c7ea047e01580451228d8ee9316586f80856fef0..0552f62295a2ebeefd8c11307e386eae8589a5de 100644 (file)
@@ -1152,7 +1152,6 @@ static int ipp_set_property(struct exynos_drm_ippdrv *ippdrv,
        /* reset h/w block */
        if (ippdrv->reset &&
            ippdrv->reset(ippdrv->dev)) {
-               DRM_ERROR("failed to reset.\n");
                return -EINVAL;
        }
 
@@ -1170,30 +1169,24 @@ static int ipp_set_property(struct exynos_drm_ippdrv *ippdrv,
                /* set format */
                if (ops->set_fmt) {
                        ret = ops->set_fmt(ippdrv->dev, config->fmt);
-                       if (ret) {
-                               DRM_ERROR("not support format.\n");
+                       if (ret)
                                return ret;
-                       }
                }
 
                /* set transform for rotation, flip */
                if (ops->set_transf) {
                        ret = ops->set_transf(ippdrv->dev, config->degree,
                                config->flip, &swap);
-                       if (ret) {
-                               DRM_ERROR("not support tranf.\n");
-                               return -EINVAL;
-                       }
+                       if (ret)
+                               return ret;
                }
 
                /* set size */
                if (ops->set_size) {
                        ret = ops->set_size(ippdrv->dev, swap, &config->pos,
                                &config->sz);
-                       if (ret) {
-                               DRM_ERROR("not support size.\n");
+                       if (ret)
                                return ret;
-                       }
                }
        }