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

Commit 29914bad authored by Markus Elfring's avatar Markus Elfring Committed by Bartlomiej Zolnierkiewicz
Browse files

video: au1100fb: Delete an error message for a failed memory allocation in au1100fb_drv_probe()



Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent 3af04d5c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -418,10 +418,8 @@ static int au1100fb_drv_probe(struct platform_device *dev)
	/* Allocate new device private */
	fbdev = devm_kzalloc(&dev->dev, sizeof(struct au1100fb_device),
			     GFP_KERNEL);
	if (!fbdev) {
		print_err("fail to allocate device private record");
	if (!fbdev)
		return -ENOMEM;
	}

	if (au1100fb_setup(fbdev))
		goto failed;