| From adce2606e3b50c07acd7b289a640adc074b91523 Mon Sep 17 00:00:00 2001 |
| From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| Date: Mon, 3 Oct 2016 17:42:07 +0300 |
| Subject: [PATCH 047/299] drm: rcar-du: Remove memory allocation error message |
| |
| Memory allocation failures print messages to the kernel log, there's no |
| need to print an extra one. Remove the duplicate message. |
| |
| Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> |
| (cherry picked from commit eb508ce6f1df09e384cbad8bccdab4ad6081f45f) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c | 4 +--- |
| 1 file changed, 1 insertion(+), 3 deletions(-) |
| |
| --- a/drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c |
| +++ b/drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c |
| @@ -241,10 +241,8 @@ int rcar_du_lvdsenc_init(struct rcar_du_ |
| |
| for (i = 0; i < rcdu->info->num_lvds; ++i) { |
| lvds = devm_kzalloc(&pdev->dev, sizeof(*lvds), GFP_KERNEL); |
| - if (lvds == NULL) { |
| - dev_err(&pdev->dev, "failed to allocate private data\n"); |
| + if (lvds == NULL) |
| return -ENOMEM; |
| - } |
| |
| lvds->dev = rcdu; |
| lvds->index = i; |