From: Emil Goode Date: Sat, 7 Jul 2012 18:44:49 +0000 (+0200) Subject: staging: CSR: fix function declaration warnings X-Git-Tag: v3.6-rc1~100^2~377 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47ec4ed2d23ff3a93f9f575295f17bdaf3d2cec9;p=platform%2Fupstream%2Fkernel-adaptation-pc.git staging: CSR: fix function declaration warnings 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/csr/csr_wifi_hip_chiphelper.c b/drivers/staging/csr/csr_wifi_hip_chiphelper.c index 0e2477f..a3148d8 100644 --- a/drivers/staging/csr/csr_wifi_hip_chiphelper.c +++ b/drivers/staging/csr/csr_wifi_hip_chiphelper.c @@ -630,7 +630,7 @@ ChipDescript* ChipHelper_GetVersionUniFi(CsrUint16 ver) } -ChipDescript* ChipHelper_Null() +ChipDescript *ChipHelper_Null(void) { return &chip_device_desc_null; }