diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-08-19 06:04:55 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2013-09-05 00:43:43 -0400 |
commit | 38bb5253a95f2eb8cb765b7ab88aac686de6cb12 (patch) | |
tree | 519c0c814285338973585a82e51662361514cac7 /drivers/gpu/drm/exynos/exynos_drm_fimd.c | |
parent | 3f1c781d9354b3856ba7de64104659a2e2033fd4 (diff) |
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_fimd.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 19328d03e46d..b8aa8fee8201 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c | |||
@@ -890,10 +890,8 @@ static int fimd_probe(struct platform_device *pdev) | |||
890 | 890 | ||
891 | if (dev->of_node) { | 891 | if (dev->of_node) { |
892 | pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); | 892 | pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); |
893 | if (!pdata) { | 893 | if (!pdata) |
894 | DRM_ERROR("memory allocation for pdata failed\n"); | ||
895 | return -ENOMEM; | 894 | return -ENOMEM; |
896 | } | ||
897 | 895 | ||
898 | ret = of_get_fb_videomode(dev->of_node, &pdata->panel.timing, | 896 | ret = of_get_fb_videomode(dev->of_node, &pdata->panel.timing, |
899 | OF_USE_NATIVE_MODE); | 897 | OF_USE_NATIVE_MODE); |