diff mbox

[RFC,2/3] ARM: mmc: davinci: Remove cast to the same type

Message ID 1390391165-27906-3-git-send-email-michael@amarulasolutions.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Nazzareno Trimarchi Jan. 22, 2014, 11:46 a.m. UTC
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
---
 drivers/mmc/host/davinci_mmc.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
index 8ea09ef..13ac664 100644
--- a/drivers/mmc/host/davinci_mmc.c
+++ b/drivers/mmc/host/davinci_mmc.c
@@ -212,7 +212,7 @@  struct mmc_davinci_host {
 	bool active_request;
 
 	/* For PIO we walk scatterlists one segment at a time. */
-	unsigned int		sg_len;
+	unsigned int sg_len;
 	struct scatterlist *sg;
 
 	/* Version of the MMC/SD controller */
@@ -660,13 +660,11 @@  static unsigned int calculate_freq_for_card(struct mmc_davinci_host *host,
 
 	mmc_pclk = host->mmc_input_clk;
 	if (mmc_req_freq && mmc_pclk > (2 * mmc_req_freq))
-		mmc_push_pull_divisor = ((unsigned int)mmc_pclk
-				/ (2 * mmc_req_freq)) - 1;
+		mmc_push_pull_divisor = (mmc_pclk / (2 * mmc_req_freq)) - 1;
 	else
 		mmc_push_pull_divisor = 0;
 
-	mmc_freq = (unsigned int)mmc_pclk
-		/ (2 * (mmc_push_pull_divisor + 1));
+	mmc_freq = mmc_pclk / (2 * (mmc_push_pull_divisor + 1));
 
 	if (mmc_freq > mmc_req_freq)
 		mmc_push_pull_divisor = mmc_push_pull_divisor + 1;
@@ -693,7 +691,7 @@  static void calculate_clk_divider(struct mmc_host *mmc, struct mmc_ios *ios)
 		/* Ignoring the init clock value passed for fixing the inter
 		 * operability with different cards.
 		 */
-		open_drain_freq = ((unsigned int)host->mmc_input_clk
+		open_drain_freq = (host->mmc_input_clk
 				/ (2 * MMCSD_INIT_CLOCK)) - 1;
 
 		if (open_drain_freq > 0xFF)