From: Johan Hovold Date: Mon, 29 Oct 2012 09:56:20 +0000 (+0100) Subject: USB: ftdi_sio: remove unnecessary memset X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d067a3155336894ca19d08b7359f824fbbdbc379;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git USB: ftdi_sio: remove unnecessary memset No need to memset a kzalloced struct. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 381515572235..95e317c8762b 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -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;