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

Commit 3e70b256 authored by Markus Elfring's avatar Markus Elfring Committed by Mauro Carvalho Chehab
Browse files

[media] media: imon: delete an error message for a failed memory allocation



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 avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent f03f02f9
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -2311,10 +2311,9 @@ static struct imon_context *imon_init_intf0(struct usb_interface *intf,
	int ret = -ENOMEM;
	int ret = -ENOMEM;


	ictx = kzalloc(sizeof(struct imon_context), GFP_KERNEL);
	ictx = kzalloc(sizeof(struct imon_context), GFP_KERNEL);
	if (!ictx) {
	if (!ictx)
		dev_err(dev, "%s: kzalloc failed for context", __func__);
		goto exit;
		goto exit;
	}

	rx_urb = usb_alloc_urb(0, GFP_KERNEL);
	rx_urb = usb_alloc_urb(0, GFP_KERNEL);
	if (!rx_urb)
	if (!rx_urb)
		goto rx_urb_alloc_failed;
		goto rx_urb_alloc_failed;