Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1198434

[PATCH 1/3] drivers: staging: wilc1000: use 'void' for no arguments functions

From Chandra S Gorentla <csgorentla@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 1/3] drivers: staging: wilc1000: use 'void' for no arguments functions
Date 2015-08-02 18:00 +0200
Message-ID <pT3Q6-59-3@gated-at.bofh.it> (permalink)
References <pT3Q6-59-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 drivers/staging/wilc1000/linux_mon.c  | 2 +-
 drivers/staging/wilc1000/linux_wlan.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_mon.c b/drivers/staging/wilc1000/linux_mon.c
index d812a3b..65d60af 100644
--- a/drivers/staging/wilc1000/linux_mon.c
+++ b/drivers/staging/wilc1000/linux_mon.c
@@ -567,7 +567,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;
 
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
index 5a794df..443be4e 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -215,7 +215,7 @@ void printk_later(const char *format, ...)
 }
 
 
-void dump_logs()
+void dump_logs(void)
 {
 	if (DebugBuffer[0]) {
 		DebugBuffer[DEGUG_BUFFER_LENGTH] = 0;
@@ -229,7 +229,7 @@ void dump_logs()
 	}
 }
 
-void Reset_WatchDogdebugger()
+void Reset_WatchDogdebugger(void)
 {
 	WatchDogdebuggerCounter = 0;
 }
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

drivers: staging: wilc1000: Fix a few style erros Chandra S Gorentla <csgorentla@gmail.com> - 2015-08-02 18:00 +0200
  [PATCH 2/3] drivers: staging: wilc1000: move { to previous line Chandra S Gorentla <csgorentla@gmail.com> - 2015-08-02 18:00 +0200
    [PATCH 3/3] drivers: staging: wilc1000: remove space after '(' Chandra S Gorentla <csgorentla@gmail.com> - 2015-08-02 18:00 +0200
  [PATCH 1/3] drivers: staging: wilc1000: use 'void' for no arguments functions Chandra S Gorentla <csgorentla@gmail.com> - 2015-08-02 18:00 +0200
    Re: [PATCH 1/3] drivers: staging: wilc1000: use 'void' for no  arguments functions Greg KH <gregkh@linuxfoundation.org> - 2015-08-04 02:40 +0200

csiph-web