summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-uniphier.c
diff options
context:
space:
mode:
authorKeiji Hayashibara <hayashibara.keiji@socionext.com>2019-09-03 14:31:00 +0900
committerMark Brown <broonie@kernel.org>2019-09-03 12:39:26 +0100
commit151d0eafa4f59bbc7f8edfbefd5de2c97370d9b9 (patch)
tree8df1463696b046970212b1dadb5a80fb488cef89 /drivers/spi/spi-uniphier.c
parent4fbc485324d2975c54201091dfad0a7dd4902324 (diff)
spi: uniphier: remove unnecessary code
This commit removed if() because priv->is_save_param is always true. Signed-off-by: Keiji Hayashibara <hayashibara.keiji@socionext.com> Link: https://lore.kernel.org/r/1567488661-11428-3-git-send-email-hayashibara.keiji@socionext.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-uniphier.c')
-rw-r--r--drivers/spi/spi-uniphier.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-uniphier.c b/drivers/spi/spi-uniphier.c
index c1e6f3245557..226f8508bff2 100644
--- a/drivers/spi/spi-uniphier.c
+++ b/drivers/spi/spi-uniphier.c
@@ -226,8 +226,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;