Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb508ce6 authored by Laurent Pinchart's avatar Laurent Pinchart
Browse files

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: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
parent 0fab63c7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -241,10 +241,8 @@ int rcar_du_lvdsenc_init(struct rcar_du_device *rcdu)

	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;