Skip to content

Commit

Permalink
staging: CSR: fix function declaration warnings
Browse files Browse the repository at this point in the history
Sparse is warning about non-ANSI function declaration.
Add void to the parameterless function.

drivers/staging/csr/csr_wifi_hip_chiphelper.c:633:31: warning:
	non-ANSI function declaration of function 'ChipHelper_Null'

I also fixed this checkpatch error:
ERROR: "foo* bar" should be "foo *bar"

Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Emil Goode authored and Greg Kroah-Hartman committed Jul 9, 2012
1 parent 0932966 commit 47ec4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/csr/csr_wifi_hip_chiphelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ ChipDescript* ChipHelper_GetVersionUniFi(CsrUint16 ver)
}


ChipDescript* ChipHelper_Null()
ChipDescript *ChipHelper_Null(void)
{
return &chip_device_desc_null;
}
Expand Down

0 comments on commit 47ec4ed

Please sign in to comment.