提交 3824ba7d 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

[PATCH] remove unused tmp_buf_sem's

tmp_buf_sem sems to be a common name for something completely unused...
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de> ("usb portion")
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e1b114ee
...@@ -108,7 +108,6 @@ static struct async_struct *IRQ_ports[NR_IRQS]; ...@@ -108,7 +108,6 @@ static struct async_struct *IRQ_ports[NR_IRQS];
static struct console *console; static struct console *console;
static unsigned char *tmp_buf; static unsigned char *tmp_buf;
static DECLARE_MUTEX(tmp_buf_sem);
extern struct console *console_drivers; /* from kernel/printk.c */ extern struct console *console_drivers; /* from kernel/printk.c */
......
...@@ -215,7 +215,6 @@ static struct tty_driver *siccnormal_driver; ...@@ -215,7 +215,6 @@ static struct tty_driver *siccnormal_driver;
* memory if large numbers of serial ports are open. * memory if large numbers of serial ports are open.
*/ */
static u_char *tmp_buf; static u_char *tmp_buf;
static DECLARE_MUTEX(tmp_buf_sem);
#define HIGH_BITS_OFFSET ((sizeof(long)-sizeof(int))*8) #define HIGH_BITS_OFFSET ((sizeof(long)-sizeof(int))*8)
......
...@@ -129,7 +129,6 @@ static struct serial_state rs_table[1]; ...@@ -129,7 +129,6 @@ static struct serial_state rs_table[1];
* memory if large numbers of serial ports are open. * memory if large numbers of serial ports are open.
*/ */
static unsigned char *tmp_buf; static unsigned char *tmp_buf;
static DECLARE_MUTEX(tmp_buf_sem);
#include <asm/uaccess.h> #include <asm/uaccess.h>
......
...@@ -160,7 +160,6 @@ static void rs_wait_until_sent(struct tty_struct *, int); ...@@ -160,7 +160,6 @@ static void rs_wait_until_sent(struct tty_struct *, int);
* memory if large numbers of serial ports are open. * memory if large numbers of serial ports are open.
*/ */
static unsigned char *tmp_buf; static unsigned char *tmp_buf;
static DECLARE_MUTEX(tmp_buf_sem);
static inline int serial_paranoia_check(struct esp_struct *info, static inline int serial_paranoia_check(struct esp_struct *info,
char *name, const char *routine) char *name, const char *routine)
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#define DEBUG #define DEBUG
static char * tmp_buf; static char * tmp_buf;
static DECLARE_MUTEX(tmp_buf_sem);
static int gs_debug; static int gs_debug;
......
...@@ -82,7 +82,6 @@ ...@@ -82,7 +82,6 @@
static struct riscom_board * IRQ_to_board[16]; static struct riscom_board * IRQ_to_board[16];
static struct tty_driver *riscom_driver; static struct tty_driver *riscom_driver;
static unsigned char * tmp_buf; static unsigned char * tmp_buf;
static DECLARE_MUTEX(tmp_buf_sem);
static unsigned long baud_table[] = { static unsigned long baud_table[] = {
0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800,
......
...@@ -129,7 +129,6 @@ struct cyclades_port cy_port[] = { ...@@ -129,7 +129,6 @@ struct cyclades_port cy_port[] = {
* memory if large numbers of serial ports are open. * memory if large numbers of serial ports are open.
*/ */
static unsigned char *tmp_buf = 0; static unsigned char *tmp_buf = 0;
DECLARE_MUTEX(tmp_buf_sem);
/* /*
* This is used to look up the divisor speeds and the timeouts * This is used to look up the divisor speeds and the timeouts
......
...@@ -184,7 +184,6 @@ static int sx_poll = HZ; ...@@ -184,7 +184,6 @@ static int sx_poll = HZ;
static struct tty_driver *specialix_driver; static struct tty_driver *specialix_driver;
static unsigned char * tmp_buf; static unsigned char * tmp_buf;
static DECLARE_MUTEX(tmp_buf_sem);
static unsigned long baud_table[] = { static unsigned long baud_table[] = {
0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800,
...@@ -2556,8 +2555,6 @@ static int __init specialix_init_module(void) ...@@ -2556,8 +2555,6 @@ static int __init specialix_init_module(void)
func_enter(); func_enter();
init_MUTEX(&tmp_buf_sem); /* Init de the semaphore - pvdl */
if (iobase[0] || iobase[1] || iobase[2] || iobase[3]) { if (iobase[0] || iobase[1] || iobase[2] || iobase[3]) {
for(i = 0; i < SX_NBOARD; i++) { for(i = 0; i < SX_NBOARD; i++) {
sx_board[i].base = iobase[i]; sx_board[i].base = iobase[i];
......
...@@ -951,7 +951,6 @@ static void* mgsl_get_text_ptr(void) ...@@ -951,7 +951,6 @@ static void* mgsl_get_text_ptr(void)
* memory if large numbers of serial ports are open. * memory if large numbers of serial ports are open.
*/ */
static unsigned char *tmp_buf; static unsigned char *tmp_buf;
static DECLARE_MUTEX(tmp_buf_sem);
static inline int mgsl_paranoia_check(struct mgsl_struct *info, static inline int mgsl_paranoia_check(struct mgsl_struct *info,
char *name, const char *routine) char *name, const char *routine)
......
...@@ -92,7 +92,6 @@ static struct Aurora_port aurora_port[AURORA_TNPORTS] = { ...@@ -92,7 +92,6 @@ static struct Aurora_port aurora_port[AURORA_TNPORTS] = {
/* no longer used. static struct Aurora_board * IRQ_to_board[16] = { NULL, } ;*/ /* no longer used. static struct Aurora_board * IRQ_to_board[16] = { NULL, } ;*/
static unsigned char * tmp_buf = NULL; static unsigned char * tmp_buf = NULL;
static DECLARE_MUTEX(tmp_buf_sem);
DECLARE_TASK_QUEUE(tq_aurora); DECLARE_TASK_QUEUE(tq_aurora);
......
...@@ -143,7 +143,6 @@ static int m68328_console_cbaud = DEFAULT_CBAUD; ...@@ -143,7 +143,6 @@ static int m68328_console_cbaud = DEFAULT_CBAUD;
* memory if large numbers of serial ports are open. * memory if large numbers of serial ports are open.
*/ */
static unsigned char tmp_buf[SERIAL_XMIT_SIZE]; /* This is cheating */ static unsigned char tmp_buf[SERIAL_XMIT_SIZE]; /* This is cheating */
DECLARE_MUTEX(tmp_buf_sem);
static inline int serial_paranoia_check(struct m68k_serial *info, static inline int serial_paranoia_check(struct m68k_serial *info,
char *name, const char *routine) char *name, const char *routine)
......
...@@ -43,8 +43,6 @@ static int debug; ...@@ -43,8 +43,6 @@ static int debug;
#define PL2303_BUF_SIZE 1024 #define PL2303_BUF_SIZE 1024
#define PL2303_TMP_BUF_SIZE 1024 #define PL2303_TMP_BUF_SIZE 1024
static DECLARE_MUTEX(pl2303_tmp_buf_sem);
struct pl2303_buf { struct pl2303_buf {
unsigned int buf_size; unsigned int buf_size;
char *buf_buf; char *buf_buf;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册