Now that the host-device is deregistered separately from deallocation,
we can simplify the cport_to_ep-array deallocation.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
static void es2_destroy(struct es2_ap_dev *es2)
{
struct usb_device *udev;
- int *cport_to_ep;
int bulk_in;
int i;
}
}
+ kfree(es2->cport_to_ep);
+
udev = es2->usb_dev;
- cport_to_ep = es2->cport_to_ep;
gb_hd_put(es2->hd);
- kfree(cport_to_ep);
usb_put_dev(udev);
}