Skip to content

Commit

Permalink
serial:ifx6x60: Remove memset for SPI frame
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
channing authored and Greg Kroah-Hartman committed Jan 22, 2013
1 parent 666b779 commit aea9554
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/tty/serial/ifx6x60.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit aea9554

Please sign in to comment.