Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b02f9240 authored by Mike Rapoport's avatar Mike Rapoport Committed by Greg Kroah-Hartman
Browse files

staging: sm750fb: remove some unnecessary castings



The clock divisor calculations in setMasterClock and setMemoryClock
unnecessaryly cast unsigned int to unsigned int. Removing the casting.

Signed-off-by: default avatarMike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7092d76f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);