提交 ca47d8f3 编写于 作者: W Wolfram Sang 提交者: Greg Kroah-Hartman

staging: most: hdm-usb: hdm_usb: 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: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 86b368db
...@@ -650,10 +650,8 @@ static int hdm_enqueue(struct most_interface *iface, int channel, ...@@ -650,10 +650,8 @@ static int hdm_enqueue(struct most_interface *iface, int channel,
return -ENODEV; return -ENODEV;
urb = usb_alloc_urb(NO_ISOCHRONOUS_URB, GFP_ATOMIC); urb = usb_alloc_urb(NO_ISOCHRONOUS_URB, GFP_ATOMIC);
if (!urb) { if (!urb)
dev_err(dev, "Failed to allocate URB\n");
return -ENOMEM; return -ENOMEM;
}
anchor = kzalloc(sizeof(*anchor), GFP_ATOMIC); anchor = kzalloc(sizeof(*anchor), GFP_ATOMIC);
if (!anchor) { if (!anchor) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册