USB: ftdi_sio: remove unnecessary memset
No need to memset a kzalloced struct. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4f2ab88874
commit
d067a31553
|
@ -1684,7 +1684,6 @@ static int ftdi_sio_port_probe(struct usb_serial_port *port)
|
||||||
|
|
||||||
kref_init(&priv->kref);
|
kref_init(&priv->kref);
|
||||||
mutex_init(&priv->cfg_lock);
|
mutex_init(&priv->cfg_lock);
|
||||||
memset(&priv->icount, 0x00, sizeof(priv->icount));
|
|
||||||
init_waitqueue_head(&priv->delta_msr_wait);
|
init_waitqueue_head(&priv->delta_msr_wait);
|
||||||
|
|
||||||
priv->flags = ASYNC_LOW_LATENCY;
|
priv->flags = ASYNC_LOW_LATENCY;
|
||||||
|
|
Loading…
Reference in a new issue