diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-08-19 12:04:55 +0200 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2013-09-05 06:43:43 +0200 |
commit | 38bb5253a95f2eb8cb765b7ab88aac686de6cb12 (patch) | |
tree | 519c0c814285338973585a82e51662361514cac7 /drivers/gpu/drm/exynos/exynos_drm_connector.c | |
parent | drm/exynos: Add missing of.h header include (diff) | |
download | linux-38bb5253a95f2eb8cb765b7ab88aac686de6cb12.tar.xz linux-38bb5253a95f2eb8cb765b7ab88aac686de6cb12.zip |
drm/exynos: Remove redundant error messages
kzalloc already has built-in error messages. Hence remove
additional ones.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_connector.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_connector.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_connector.c b/drivers/gpu/drm/exynos/exynos_drm_connector.c index 3f80673c12ec..de7c7b294d2c 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_connector.c +++ b/drivers/gpu/drm/exynos/exynos_drm_connector.c @@ -279,10 +279,8 @@ struct drm_connector *exynos_drm_connector_create(struct drm_device *dev, int err; exynos_connector = kzalloc(sizeof(*exynos_connector), GFP_KERNEL); - if (!exynos_connector) { - DRM_ERROR("failed to allocate connector\n"); + if (!exynos_connector) return NULL; - } connector = &exynos_connector->drm_connector; |