提交 2685b1d1 编写于 作者: W Wolfram Sang 提交者: Mauro Carvalho Chehab

[media] 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: NWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 9d849287
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册