Fix multiple checkpatch issues
Subsystems (2)
cover Fix multiple checkpatch issues
This patchset fixes multiple issues found using checkpatch.pl
Amitoj Kaur Chawla (3):
staging: sm750fb: Remove space after cast
staging: sm750fb: Remove space before closing brace
staging: sm750fb: Remove space after opening brace
drivers/staging/sm750fb/ddk750_chip.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/3 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +2 -2
@@ -133,7 +133,7 @@ static 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 );
@@ -180,7 +180,7 @@ static void setMasterClock(unsigned int frequency) frequency =MHz (190 );/* 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
PATCH 2/3 staging: sm750fb: Remove space before closing brace
In reply to Amitoj Kaur ChawlaRemove space before closing brace '}'. Problem found using checkpatch.pl
CHECK: Blank lines aren't necessary before a close brace '}'
--- drivers/staging/sm750fb/ddk750_chip.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/sm750fb/ddk750_chip.c +0 -1
@@ -234,7 +234,6 @@ unsigned int ddk750_getVMSize(void)break ; }return data; - }int ddk750_initHw (initchip_param_t *pInitParam)
Signature · 1 line
1.9.1
PATCH 3/3 staging: sm750fb: Remove space after opening brace
In reply to Amitoj Kaur ChawlaRemove space after opening brace '{'. Problem found using checkpatch.pl
CHECK: Blank lines aren't necessary after an open brace '{'
--- drivers/staging/sm750fb/ddk750_chip.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/sm750fb/ddk750_chip.c +0 -1
@@ -238,7 +238,6 @@ unsigned int ddk750_getVMSize(void)int ddk750_initHw (initchip_param_t *pInitParam) { -unsigned int ulReg; <<<<<<< HEAD
Signature · 1 line
1.9.1
Re: [Outreachy kernel] [PATCH 3/3] staging: sm750fb: Remove space after opening brace
Quoted 14 lines · Amitoj Kaur Chawla
Remove space after opening brace '{'. Problem found using checkpatch.pl
CHECK: Blank lines aren't necessary after an open brace '{'Signed-off-by Amitoj Kaur Chawla <[email protected]>--- drivers/staging/sm750fb/ddk750_chip.c | 1 - 1 file changed, 1 deletion(-)drivers/staging/sm750fb/ddk750_chip.c +0
-0
drivers/staging/sm750fb/ddk750_chip.c unsigned int ddk750_getVMSize(void) · line 243
Quoted 7 lines
drivers/staging/sm750fb/ddk750_chip.c +0
-1@@ -238,7 +238,6 @@ unsigned int ddk750_getVMSize(void)int ddk750_initHw (initchip_param_t *pInitParam) { -unsigned int ulReg; <<<<<<< HEAD
Something went wrong here.
julia
Quoted 10 lines
Signature · 8 lines
1.9.1 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/65d703974d96550d8802203b4243da28797ae8bf.1444332001.git.amitoj1606%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Outreachy kernel] [PATCH 3/3] staging: sm750fb: Remove space after opening brace
Quoted 17 lines · Julia Lawall
Quoted 15 lines · Amitoj Kaur Chawla
Remove space after opening brace '{'. Problem found using checkpatch.pl
CHECK: Blank lines aren't necessary after an open brace '{'Signed-off-by Amitoj Kaur Chawla <[email protected]>--- drivers/staging/sm750fb/ddk750_chip.c | 1 - 1 file changed, 1 deletion(-)drivers/staging/sm750fb/ddk750_chip.c +0
-0@@ -238,7 +238,6 @@ unsigned int ddk750_getVMSize(void)
Quoted 9 lines
drivers/staging/sm750fb/ddk750_chip.c unsigned int ddk750_getVMSize(void) · line 243
Quoted 6 lines
drivers/staging/sm750fb/ddk750_chip.c +0
-1int ddk750_initHw (initchip_param_t *pInitParam) { -unsigned int ulReg; <<<<<<< HEADSomething went wrong here.
I just saw. This last line. HEAD. I'll look into this!
Thanks,
Amitoj