From: Hui Wang Date: Fri, 13 Jul 2012 02:51:28 +0000 (+0800) Subject: spi/imx: remove redundant config.speed_hz setting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=872675df2795389fd47b7a0ad084ba1e91665c87;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Sascha Hauer Signed-off-by: Hui Wang Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 47877d687614..c12052fef68c 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -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) {