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

Commit 7164c590 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman
Browse files

media: usb: stkwebcam: stk-webcam: don't print error when allocating urb fails



kmalloc will print enough information in case of failure.

Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ec70abd1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -452,10 +452,8 @@ static int stk_prepare_iso(struct stk_camera *dev)
			STK_ERROR("isobuf data already allocated\n");
		if (dev->isobufs[i].urb == NULL) {
			urb = usb_alloc_urb(ISO_FRAMES_PER_DESC, GFP_KERNEL);
			if (urb == NULL) {
				STK_ERROR("Failed to allocate URB %d\n", i);
			if (urb == NULL)
				goto isobufs_out;
			}
			dev->isobufs[i].urb = urb;
		} else {
			STK_ERROR("Killing URB\n");