Commit 11c5f6d2 authored by Oliver Neukum's avatar Oliver Neukum Committed by David S. Miller

usb: hso: no complaint about kmalloc failure

If this fails, kmalloc() will print a report including
a stack trace. There is no need for a separate complaint.
Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5fcfb6d0
...@@ -2465,10 +2465,9 @@ static void hso_create_rfkill(struct hso_device *hso_dev, ...@@ -2465,10 +2465,9 @@ static void hso_create_rfkill(struct hso_device *hso_dev,
&interface_to_usbdev(interface)->dev, &interface_to_usbdev(interface)->dev,
RFKILL_TYPE_WWAN, RFKILL_TYPE_WWAN,
&hso_rfkill_ops, hso_dev); &hso_rfkill_ops, hso_dev);
if (!hso_net->rfkill) { if (!hso_net->rfkill)
dev_err(dev, "%s - Out of memory\n", __func__);
return; return;
}
if (rfkill_register(hso_net->rfkill) < 0) { if (rfkill_register(hso_net->rfkill) < 0) {
rfkill_destroy(hso_net->rfkill); rfkill_destroy(hso_net->rfkill);
hso_net->rfkill = NULL; hso_net->rfkill = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment