Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d067a315 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: ftdi_sio: remove unnecessary memset



No need to memset a kzalloced struct.

Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4f2ab888
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1684,7 +1684,6 @@ static int ftdi_sio_port_probe(struct usb_serial_port *port)

	kref_init(&priv->kref);
	mutex_init(&priv->cfg_lock);
	memset(&priv->icount, 0x00, sizeof(priv->icount));
	init_waitqueue_head(&priv->delta_msr_wait);

	priv->flags = ASYNC_LOW_LATENCY;