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

Commit ef6cd130 authored by Wolfram Sang's avatar Wolfram Sang Committed by David S. Miller
Browse files

net: usb: usbnet: 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 avatarDavid S. Miller <davem@davemloft.net>
parent d7c4e84e
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -2062,11 +2062,8 @@ int usbnet_write_cmd_async(struct usbnet *dev, u8 cmd, u8 reqtype,
		   cmd, reqtype, value, index, size);

	urb = usb_alloc_urb(0, GFP_ATOMIC);
	if (!urb) {
		netdev_err(dev->net, "Error allocating URB in"
			   " %s!\n", __func__);
	if (!urb)
		goto fail;
	}

	if (data) {
		buf = kmemdup(data, size, GFP_ATOMIC);