drivers: staging: wilc1000: use 'void' for no arguments functions
authorChandra S Gorentla <csgorentla@gmail.com>
Wed, 5 Aug 2015 16:41:55 +0000 (22:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 19:15:38 +0000 (12:15 -0700)
Added 'void' keyword in the paranthesis of function definitions, when
there are no arguments to the functions.  This fixes the checkpatch.pl
error - "Bad function definition 'function()' should probably be
function(void)".

Signed-off-by: Chandra S Gorentla <csgorentla@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_mon.c
drivers/staging/wilc1000/linux_wlan.c

index aa20421021fadec9e824693af6d452f2b573ef81..123468a9582fc0019ed7ab1ed77c6f104100f68f 100644 (file)
@@ -558,7 +558,7 @@ struct net_device *WILC_WFI_init_mon_interface(const char *name, struct net_devi
  *  @date      12 JUL 2012
  *  @version   1.0
  */
-int WILC_WFI_deinit_mon_interface()
+int WILC_WFI_deinit_mon_interface(void)
 {
        bool rollback_lock = false;
 
index 3e55a8ac29665b6283a9b0f9c3152a7214193f06..0a8052e717c2fbe8b508140e9fcc2986d0443cf8 100644 (file)
@@ -202,7 +202,7 @@ void printk_later(const char *format, ...)
 
 }
 
-void dump_logs()
+void dump_logs(void)
 {
        if (DebugBuffer[0]) {
                DebugBuffer[DEGUG_BUFFER_LENGTH] = 0;
@@ -216,7 +216,7 @@ void dump_logs()
        }
 }
 
-void Reset_WatchDogdebugger()
+void Reset_WatchDogdebugger(void)
 {
        WatchDogdebuggerCounter = 0;
 }
This page took 0.030012 seconds and 5 git commands to generate.