Loading drivers/net/usb/hso.c +4 −10 Original line number Diff line number Diff line Loading @@ -2363,12 +2363,6 @@ static int hso_serial_common_create(struct hso_serial *serial, int num_urbs, return -1; } /* Frees a general hso device */ static void hso_free_device(struct hso_device *hso_dev) { kfree(hso_dev); } /* Creates a general hso device */ static struct hso_device *hso_create_device(struct usb_interface *intf, int port_spec) Loading Loading @@ -2431,7 +2425,7 @@ static void hso_free_net_device(struct hso_device *hso_dev) free_netdev(hso_net->net); } hso_free_device(hso_dev); kfree(hso_dev); } /* initialize the network interface */ Loading Loading @@ -2645,7 +2639,7 @@ static void hso_free_serial_device(struct hso_device *hso_dev) } hso_free_tiomget(serial); kfree(serial); hso_free_device(hso_dev); kfree(hso_dev); } /* Creates a bulk AT channel */ Loading Loading @@ -2726,7 +2720,7 @@ static struct hso_device *hso_create_bulk_serial_device( exit: hso_free_tiomget(serial); kfree(serial); hso_free_device(hso_dev); kfree(hso_dev); return NULL; } Loading Loading @@ -2785,7 +2779,7 @@ struct hso_device *hso_create_mux_serial_device(struct usb_interface *interface, kfree(serial); } if (hso_dev) hso_free_device(hso_dev); kfree(hso_dev); return NULL; } Loading Loading
drivers/net/usb/hso.c +4 −10 Original line number Diff line number Diff line Loading @@ -2363,12 +2363,6 @@ static int hso_serial_common_create(struct hso_serial *serial, int num_urbs, return -1; } /* Frees a general hso device */ static void hso_free_device(struct hso_device *hso_dev) { kfree(hso_dev); } /* Creates a general hso device */ static struct hso_device *hso_create_device(struct usb_interface *intf, int port_spec) Loading Loading @@ -2431,7 +2425,7 @@ static void hso_free_net_device(struct hso_device *hso_dev) free_netdev(hso_net->net); } hso_free_device(hso_dev); kfree(hso_dev); } /* initialize the network interface */ Loading Loading @@ -2645,7 +2639,7 @@ static void hso_free_serial_device(struct hso_device *hso_dev) } hso_free_tiomget(serial); kfree(serial); hso_free_device(hso_dev); kfree(hso_dev); } /* Creates a bulk AT channel */ Loading Loading @@ -2726,7 +2720,7 @@ static struct hso_device *hso_create_bulk_serial_device( exit: hso_free_tiomget(serial); kfree(serial); hso_free_device(hso_dev); kfree(hso_dev); return NULL; } Loading Loading @@ -2785,7 +2779,7 @@ struct hso_device *hso_create_mux_serial_device(struct usb_interface *interface, kfree(serial); } if (hso_dev) hso_free_device(hso_dev); kfree(hso_dev); return NULL; } Loading