]> git.baikalelectronics.ru Git - kernel.git/commitdiff
usb: hso: no complaint about kmalloc failure
authorOliver Neukum <oneukum@suse.com>
Wed, 5 Aug 2020 12:07:08 +0000 (14:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Aug 2020 00:43:39 +0000 (17:43 -0700)
If this fails, kmalloc() will print a report including
a stack trace. There is no need for a separate complaint.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c

index 031a5ad255001238b96c8a73e19e49c46e024e20..5762876e310526180e84e69828ea68195225bd06 100644 (file)
@@ -2465,10 +2465,9 @@ static void hso_create_rfkill(struct hso_device *hso_dev,
                                       &interface_to_usbdev(interface)->dev,
                                       RFKILL_TYPE_WWAN,
                                       &hso_rfkill_ops, hso_dev);
-       if (!hso_net->rfkill) {
-               dev_err(dev, "%s - Out of memory\n", __func__);
+       if (!hso_net->rfkill)
                return;
-       }
+
        if (rfkill_register(hso_net->rfkill) < 0) {
                rfkill_destroy(hso_net->rfkill);
                hso_net->rfkill = NULL;