staging: sm750fb: remove some unnecessary castings
authorMike Rapoport <mike.rapoport@gmail.com>
Tue, 13 Oct 2015 06:26:46 +0000 (09:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:05:40 +0000 (22:05 -0700)
The clock divisor calculations in setMasterClock and setMemoryClock
unnecessaryly cast unsigned int to unsigned int. Removing the casting.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_chip.c

index 77f3e43719db34dfcbe9ad8ac3cefe931da411f0..bab3d91c70bf706be662a3bec42cb41c6eed0a99 100644 (file)
@@ -100,7 +100,7 @@ static void setMemoryClock(unsigned int frequency)
                        frequency = MHz(336);
 
                /* Calculate the divisor */
-               divisor = (unsigned int)roundedDiv(get_mxclk_freq(), frequency);
+               divisor = roundedDiv(get_mxclk_freq(), frequency);
 
                /* Set the corresponding divisor in the register. */
                ulReg = PEEK32(CURRENT_GATE);
@@ -147,7 +147,7 @@ static void setMasterClock(unsigned int frequency)
                        frequency = MHz(190);
 
                /* Calculate the divisor */
-               divisor = (unsigned int)roundedDiv(get_mxclk_freq(), frequency);
+               divisor = roundedDiv(get_mxclk_freq(), frequency);
 
                /* Set the corresponding divisor in the register. */
                ulReg = PEEK32(CURRENT_GATE);