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: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
86b368dbfd
commit
ca47d8f3ff
|
@ -650,10 +650,8 @@ static int hdm_enqueue(struct most_interface *iface, int channel,
|
|||
return -ENODEV;
|
||||
|
||||
urb = usb_alloc_urb(NO_ISOCHRONOUS_URB, GFP_ATOMIC);
|
||||
if (!urb) {
|
||||
dev_err(dev, "Failed to allocate URB\n");
|
||||
if (!urb)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
anchor = kzalloc(sizeof(*anchor), GFP_ATOMIC);
|
||||
if (!anchor) {
|
||||
|
|
Loading…
Reference in New Issue