Skip to contentSkip to conversation

Staging: sm750fb: Remove space after cast

PATCH In review Dilek Uzulmez 2 participants 3 messages Feb 22, 2016 – Mar 11, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: sm750fb: Remove space after cast

Remove unnecessary space after cast. Problem found using checkpatch.pl
CHECK: No space is necessary after a cast

---
 drivers/staging/sm750fb/ddk750_chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/sm750fb/ddk750_chip.c +1 -1
index 5e6798e..0251eab 100644
@@ -146,7 +146,7 @@ void setMemoryClock(unsigned int frequency)
 			frequency = MHz(336);
 
 		/* Calculate the divisor */
-		divisor = (unsigned int) roundedDiv(getChipClock(), frequency);
+		divisor = (unsigned int)roundedDiv(getChipClock(), frequency);
 
 		/* Set the corresponding divisor in the register. */
 		ulReg = PEEK32(CURRENT_GATE);
Signature · 1 line
1.9.1
#1 lore raw

Did you check this ?

Quoted 28 lines · Dilek Uzulmez

Remove unnecessary space after cast. Problem found using checkpatch.pl
CHECK: No space is necessary after a cast

---
 drivers/staging/sm750fb/ddk750_chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/sm750fb/ddk750_chip.c +1 -1
index 5e6798e..0251eab 100644
@@ -146,7 +146,7 @@ void setMemoryClock(unsigned int frequency)
                        frequency = MHz(336);
 
                /* Calculate the divisor */
-               divisor = (unsigned int) roundedDiv(getChipClock(),
 frequency);
+               divisor = (unsigned int)roundedDiv(getChipClock(),
 frequency);
 
                /* Set the corresponding divisor in the register. */
                ulReg = PEEK32(CURRENT_GATE);

--
1.9.1

maintainer
#2 lore raw
In reply to Dilek Uzulmez
Quoted 7 lines · Dilek Uzulmez

Remove unnecessary space after cast. Problem found using checkpatch.pl
CHECK: No space is necessary after a cast

---
 drivers/staging/sm750fb/ddk750_chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Doesn't apply to my tree :(