Skip to content

Commit 28f0fdb

Browse files
mudonglianggregkh
authored andcommitted
usb: hso: remove the bailout parameter
commit dcb713d upstream. There are two invocation sites of hso_free_net_device. After refactoring hso_create_net_device, this parameter is useless. Remove the bailout in the hso_free_net_device and change the invocation sites of this function. Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> [Backport this cleanup patch to 5.10 and 5.14 in order to keep the codebase consistent with the 4.14/4.19/5.4 patchseries] Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4ad4852 commit 28f0fdb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/net/usb/hso.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2354,7 +2354,7 @@ static int remove_net_device(struct hso_device *hso_dev)
23542354
}
23552355

23562356
/* Frees our network device */
2357-
static void hso_free_net_device(struct hso_device *hso_dev, bool bailout)
2357+
static void hso_free_net_device(struct hso_device *hso_dev)
23582358
{
23592359
int i;
23602360
struct hso_net *hso_net = dev2net(hso_dev);
@@ -2377,7 +2377,7 @@ static void hso_free_net_device(struct hso_device *hso_dev, bool bailout)
23772377
kfree(hso_net->mux_bulk_tx_buf);
23782378
hso_net->mux_bulk_tx_buf = NULL;
23792379

2380-
if (hso_net->net && !bailout)
2380+
if (hso_net->net)
23812381
free_netdev(hso_net->net);
23822382

23832383
kfree(hso_dev);
@@ -3137,7 +3137,7 @@ static void hso_free_interface(struct usb_interface *interface)
31373137
rfkill_unregister(rfk);
31383138
rfkill_destroy(rfk);
31393139
}
3140-
hso_free_net_device(network_table[i], false);
3140+
hso_free_net_device(network_table[i]);
31413141
}
31423142
}
31433143
}

0 commit comments

Comments
 (0)