Fix multiple checkpatch warnings
cover Fix multiple checkpatch warnings
Fix spelling error of a variable from unkmown to unknown and add a blank line after a function definition.
Sreya Mittal (2):
staging: wilc1000: Fix spelling error
staging: wilc1000: Add blank line after a function
drivers/staging/wilc1000/wilc_spi.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
Signature · 1 line
2.9.3
PATCH 1/2 staging: wilc1000: Fix spelling error
Fix the checkpatch issue:
'unkmown' may be misspelled - perhaps 'unknown'?
Signed-off-by Sreya Mittal <[email protected]>
--- drivers/staging/wilc1000/wilc_spi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wilc1000/wilc_spi.c +4 -4
@@ -965,12 +965,12 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status) } { -u32 unkmown_mask; +u32 unknown_mask; - unkmown_mask = ~((1ul << g_spi.nint) -1 ); + unknown_mask = ~((1ul << g_spi.nint) -1 ); -if ((tmp >>IRG_FLAGS_OFFSET ) & unkmown_mask) { -dev_err (&spi->dev,"Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n" , j, tmp, unkmown_mask); +if ((tmp >>IRG_FLAGS_OFFSET ) & unknown_mask) { +dev_err (&spi->dev,"Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n" , j, tmp, unknown_mask); happended =1 ; } }
Signature · 1 line
2.9.3
PATCH 2/2 staging: wilc1000: Add blank line after a function
In reply to Sreya MittalFix the checkpatch issue:
Please use a blank line after function/struct/union/enum declarations
Signed-off-by Sreya Mittal <[email protected]>
--- drivers/staging/wilc1000/wilc_spi.c | 1 + 1 file changed, 1 insertion(+)
drivers/staging/wilc1000/wilc_spi.c +1 -0
@@ -1130,6 +1130,7 @@ static int wilc_spi_sync_ext(struct wilc *wilc, int nint)return 1 ; } +/******************************************** * * Global spi HIF function table
Signature · 1 line
2.9.3
Greg Kroah-Hartman
maintainerRe: [PATCH 1/2] staging: wilc1000: Fix spelling error
In reply to Sreya MittalQuoted 7 lines · Sreya Mittal
Fix the checkpatch issue:
'unkmown' may be misspelled - perhaps 'unknown'?Signed-off-by Sreya Mittal <[email protected]>--- drivers/staging/wilc1000/wilc_spi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Both of these patches do not apply to my tree at all :(
Please rebase and resend.
thanks,
greg k-h