aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/p54spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/p54/p54spi.c')
-rw-r--r--drivers/net/wireless/p54/p54spi.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c
index 272b7e176afc..399190b3bed7 100644
--- a/drivers/net/wireless/p54/p54spi.c
+++ b/drivers/net/wireless/p54/p54spi.c
@@ -96,7 +96,7 @@ static void p54spi_spi_write(struct p54s_priv *priv, u8 address,
96 spi_message_add_tail(&t[0], &m); 96 spi_message_add_tail(&t[0], &m);
97 97
98 t[1].tx_buf = buf; 98 t[1].tx_buf = buf;
99 t[1].len = len; 99 t[1].len = len & ~1;
100 spi_message_add_tail(&t[1], &m); 100 spi_message_add_tail(&t[1], &m);
101 101
102 if (len % 2) { 102 if (len % 2) {
@@ -541,11 +541,6 @@ static void p54spi_work(struct work_struct *work)
541 } 541 }
542 542
543 ret = p54spi_wq_tx(priv); 543 ret = p54spi_wq_tx(priv);
544 if (ret < 0)
545 goto out;
546
547 ints = p54spi_read32(priv, SPI_ADRS_HOST_INTERRUPTS);
548
549out: 544out:
550 mutex_unlock(&priv->mutex); 545 mutex_unlock(&priv->mutex);
551} 546}