spi/imx: remove redundant config.speed_hz setting

The config.speed_hz is just setted at the two lines ahead of it,
obviously we don't need to copy the code to set the config.speed_hz
again. Remove it for a cleanup.

Cc: Mark Brown <[email protected]>
Acked-by: Sascha Hauer <[email protected]>
Signed-off-by: Hui Wang <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
Hui Wang 2012-07-13 10:51:28 +08:00 • committed by Mark Brown
commit 872675df27

View file

@ -688,8 +688,6 @@ static int spi_imx_setupxfer(struct spi_device *spi,
config.speed_hz = spi->max_speed_hz;
if (!config.bpw)
config.bpw = spi->bits_per_word;
if (!config.speed_hz)
config.speed_hz = spi->max_speed_hz;
/* Initialize the functions for transfer */
if (config.bpw <= 8) {