diff mbox series

[2/3] spi: uniphier: remove unnecessary code

Message ID 1567488661-11428-3-git-send-email-hayashibara.keiji@socionext.com (mailing list archive)
State Accepted
Commit 151d0eafa4f59bbc7f8edfbefd5de2c97370d9b9
Headers show
Series spi: uniphier: introduce polling mode and fix bug | expand

Commit Message

Keiji Hayashibara Sept. 3, 2019, 5:31 a.m. UTC
This commit removed if() because priv->is_save_param is always true.

Signed-off-by: Keiji Hayashibara <hayashibara.keiji@socionext.com>
---
 drivers/spi/spi-uniphier.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/spi/spi-uniphier.c b/drivers/spi/spi-uniphier.c
index e6ebbb1..d40ad93 100644
--- a/drivers/spi/spi-uniphier.c
+++ b/drivers/spi/spi-uniphier.c
@@ -227,8 +227,7 @@  static void uniphier_spi_setup_transfer(struct spi_device *spi,
 		priv->speed_hz = t->speed_hz;
 	}
 
-	if (!priv->is_save_param)
-		priv->is_save_param = true;
+	priv->is_save_param = true;
 
 	/* reset FIFOs */
 	val = SSI_FC_TXFFL | SSI_FC_RXFFL;