Skip to contentSkip to conversation

ip2main.c: remove stale function declaration

PATCH New Adrian Bunk 1 participant 1 message Oct 30, 2004 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip2main.c: remove stale function declaration

I'm getting the following compile warning in recent 2.6 kernels:

<-- snip -->

...
CC drivers/char/ip2main.o
...
drivers/char/ip2main.c:205: warning: 'set_modem_info' declared `static' but never defined
...

<-- snip -->

gcc is right, and the patch below removes this finction declaration.

drivers/char/ip2main.c renamed from drivers/char/ip2main.c.old +0 -1
@@ -202,7 +202,6 @@
 static void ip2_wait_until_sent(PTTY,int);
 
 static void set_params (i2ChanStrPtr, struct termios *);
-static int set_modem_info(i2ChanStrPtr, unsigned int, unsigned int *);
 static int get_serial_info(i2ChanStrPtr, struct serial_struct __user *);
 static int set_serial_info(i2ChanStrPtr, struct serial_struct __user *);