diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-10-29 05:56:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-30 16:06:08 -0400 |
commit | d067a3155336894ca19d08b7359f824fbbdbc379 (patch) | |
tree | d5b55b01a3b6073b0fa68dbc723494c919cdb036 /drivers/usb/serial/ftdi_sio.c | |
parent | 4f2ab8887479bef2204878ed6d633a515a3e6a0d (diff) |
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>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) | |||
1684 | 1684 | ||
1685 | kref_init(&priv->kref); | 1685 | kref_init(&priv->kref); |
1686 | mutex_init(&priv->cfg_lock); | 1686 | mutex_init(&priv->cfg_lock); |
1687 | memset(&priv->icount, 0x00, sizeof(priv->icount)); | ||
1688 | init_waitqueue_head(&priv->delta_msr_wait); | 1687 | init_waitqueue_head(&priv->delta_msr_wait); |
1689 | 1688 | ||
1690 | priv->flags = ASYNC_LOW_LATENCY; | 1689 | priv->flags = ASYNC_LOW_LATENCY; |