aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2016-10-03 10:42:07 -0400
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2016-11-13 20:35:14 -0500
commiteb508ce6f1df09e384cbad8bccdab4ad6081f45f (patch)
tree7b129ee45b86d17b10d5ad56a1f5397b49906047
parent0fab63c7b868a3ee8066114fabb25e108c38c3ce (diff)
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>
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c b/drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c
index ef3a50321ecc..b74105a80a6e 100644
--- 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_device *rcdu)
241 241
242 for (i = 0; i < rcdu->info->num_lvds; ++i) { 242 for (i = 0; i < rcdu->info->num_lvds; ++i) {
243 lvds = devm_kzalloc(&pdev->dev, sizeof(*lvds), GFP_KERNEL); 243 lvds = devm_kzalloc(&pdev->dev, sizeof(*lvds), GFP_KERNEL);
244 if (lvds == NULL) { 244 if (lvds == NULL)
245 dev_err(&pdev->dev, "failed to allocate private data\n");
246 return -ENOMEM; 245 return -ENOMEM;
247 }
248 246
249 lvds->dev = rcdu; 247 lvds->dev = rcdu;
250 lvds->index = i; 248 lvds->index = i;