summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-09-04 09:53:01 +0200
committerMark Brown <broonie@kernel.org>2016-09-06 11:55:20 +0100
commitdaae020ce9fe4324322c6ed18a840234a05d76b3 (patch)
tree995100ab32b81fcefe8f079eba9921793755bc8d
parentdbd4fefb5b7cba19e3f89c097d93ad02049e38e3 (diff)
spi: fsl-espi: remove unused elements n_rx and n_tx in struct fsl_espi_transfer
Both elements are not used, so remove them. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-fsl-espi.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c
index f9ef50444447..a9004fe5a5ed 100644
--- a/drivers/spi/spi-fsl-espi.c
+++ b/drivers/spi/spi-fsl-espi.c
@@ -41,8 +41,6 @@ struct fsl_espi_transfer {
const void *tx_buf;
void *rx_buf;
unsigned len;
- unsigned n_tx;
- unsigned n_rx;
unsigned actual_length;
int status;
};
@@ -371,24 +369,16 @@ static int fsl_espi_do_one_msg(struct spi_master *master,
{
struct spi_transfer *t;
u8 *rx_buf = NULL;
- unsigned int n_tx = 0;
- unsigned int n_rx = 0;
unsigned int xfer_len = 0;
struct fsl_espi_transfer espi_trans;
list_for_each_entry(t, &m->transfers, transfer_list) {
- if (t->tx_buf)
- n_tx += t->len;
- if (t->rx_buf) {
- n_rx += t->len;
+ if (t->rx_buf)
rx_buf = t->rx_buf;
- }
if ((t->tx_buf) || (t->rx_buf))
xfer_len += t->len;
}
- espi_trans.n_tx = n_tx;
- espi_trans.n_rx = n_rx;
espi_trans.len = xfer_len;
espi_trans.actual_length = 0;
espi_trans.status = 0;