Skip to content

Commit 11c5f6d

Browse files
oneukumdavem330
authored andcommitted
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: Oliver Neukum <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5fcfb6d commit 11c5f6d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/net/usb/hso.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2465,10 +2465,9 @@ static void hso_create_rfkill(struct hso_device *hso_dev,
24652465
&interface_to_usbdev(interface)->dev,
24662466
RFKILL_TYPE_WWAN,
24672467
&hso_rfkill_ops, hso_dev);
2468-
if (!hso_net->rfkill) {
2469-
dev_err(dev, "%s - Out of memory\n", __func__);
2468+
if (!hso_net->rfkill)
24702469
return;
2471-
}
2470+
24722471
if (rfkill_register(hso_net->rfkill) < 0) {
24732472
rfkill_destroy(hso_net->rfkill);
24742473
hso_net->rfkill = NULL;

0 commit comments

Comments
 (0)