OSDN Git Service

drm/exynos: Remove redundant error messages
[uclinux-h8/linux.git] / drivers / gpu / drm / exynos / exynos_drm_plane.c
index 98eb1f7..fcb0652 100644 (file)
@@ -265,10 +265,8 @@ struct drm_plane *exynos_plane_init(struct drm_device *dev,
        int err;
 
        exynos_plane = kzalloc(sizeof(struct exynos_plane), GFP_KERNEL);
-       if (!exynos_plane) {
-               DRM_ERROR("failed to allocate plane\n");
+       if (!exynos_plane)
                return NULL;
-       }
 
        err = drm_plane_init(dev, &exynos_plane->base, possible_crtcs,
                              &exynos_plane_funcs, formats, ARRAY_SIZE(formats),