summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/ifx6x60.c
diff options
context:
space:
mode:
authorchanning <chao.bi@intel.com>2013-01-22 12:08:46 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-22 21:25:33 +0400
commitaea95548c0dedea31a9dbb78eae762b220553921 (patch)
tree53de0c80c814c4501fd26b89e789a3ffd37eff04 /drivers/tty/serial/ifx6x60.c
parent666b7793d4bfa9f150b5c2007ab48c755ddc53ca (diff)
downloadlinux-aea95548c0dedea31a9dbb78eae762b220553921.tar.xz
serial:ifx6x60: Remove memset for SPI frame
There is no need to memset 0 to SPI frame memory before preparing transfer frame bits, because SPI frame header are encoded with valid data size, so don't need to worry about adopting dirty bits, more, memset zero for each SPI frame may impact the spi throughput efficiency. Signed-off-by: Chen Jun <jun.d.chen@intel.com> Signed-off-by: channing <chao.bi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/ifx6x60.c')
-rw-r--r--drivers/tty/serial/ifx6x60.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/ifx6x60.c b/drivers/tty/serial/ifx6x60.c
index 6a6668bbb330..f083641bf475 100644
--- a/drivers/tty/serial/ifx6x60.c
+++ b/drivers/tty/serial/ifx6x60.c
@@ -481,7 +481,6 @@ static int ifx_spi_prepare_tx_buffer(struct ifx_spi_device *ifx_dev)
unsigned char *tx_buffer;
tx_buffer = ifx_dev->tx_buffer;
- memset(tx_buffer, 0, IFX_SPI_TRANSFER_SIZE);
/* make room for required SPI header */
tx_buffer += IFX_SPI_HEADER_OVERHEAD;