summaryrefslogtreecommitdiff
path: root/drivers/net/usb/hso.c
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2020-08-05 15:07:08 +0300
committerDavid S. Miller <davem@davemloft.net>2020-08-06 03:43:39 +0300
commit11c5f6d2f2a8f34f64dfcdec4090d2c17539c2c3 (patch)
treef0b15c08c9db4002e398152f29d5ca3c2af1a41d /drivers/net/usb/hso.c
parent5fcfb6d0bfcda17f0d0656e4e5b3710af2bbaae5 (diff)
downloadlinux-11c5f6d2f2a8f34f64dfcdec4090d2c17539c2c3.tar.xz
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 <oneukum@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/hso.c')
-rw-r--r--drivers/net/usb/hso.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
index 031a5ad25500..5762876e3105 100644
--- a/drivers/net/usb/hso.c
+++ b/drivers/net/usb/hso.c
@@ -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;