[PATCH] drivers:staging: fix compilation warning

Cong Ding dinggnu at gmail.com
Mon Dec 3 10:34:08 UTC 2012


We do not allow old-style function definition.  Always spell foo(void) if
a function does not take any parameters.

Signed-off-by: Cong Ding <dinggnu at gmail.com>
---
 drivers/staging/telephony/ixj.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/telephony/ixj.c b/drivers/staging/telephony/ixj.c
index 1cfa0b0..6233f19 100644
--- a/drivers/staging/telephony/ixj.c
+++ b/drivers/staging/telephony/ixj.c
@@ -318,7 +318,7 @@ static IXJ *ixj[IXJMAX];
  *	Allocate a free IXJ device
  */
 
-static IXJ *ixj_alloc()
+static IXJ *ixj_alloc(void)
 {
 	for(cnt=0; cnt<IXJMAX; cnt++)
 	{
-- 
1.7.4.5




More information about the devel mailing list