spi: uniphier: remove unnecessary code
authorKeiji Hayashibara <hayashibara.keiji@socionext.com>
Tue, 3 Sep 2019 05:31:00 +0000 (14:31 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 3 Sep 2019 11:39:26 +0000 (12:39 +0100)
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>
drivers/spi/spi-uniphier.c

index c1e6f32455574eedf9b19dadcf2dfe9c65c69282..226f8508bff294043b4042b141748ee2a37df611 100644 (file)
@@ -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;