[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] [patch] xmbserial: kill warnings



Hi,

this is a trivial patch to kill warnings in xmbserial
--
            yashi

---
* a trivial patch to kill warnings in xmbserial.c

 xmbserial.c |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)

Index: linux-suzaku/arch/microblaze/kernel/xmbserial.c
===================================================================
--- linux-suzaku.orig/arch/microblaze/kernel/xmbserial.c	2004-08-16 21:31:45.491073885 +0900
+++ linux-suzaku/arch/microblaze/kernel/xmbserial.c	2004-08-16 21:34:06.101791506 +0900
@@ -1083,8 +1083,6 @@ static int xmbrs_ioctl(struct tty_struct
 
 static void xmbrs_set_termios(struct tty_struct *tty, struct termios *old_termios)
 {
-	struct xmb_serial *info = (struct xmb_serial *)tty->driver_data;
-
 	if (tty->termios->c_cflag == old_termios->c_cflag)
 		return;
 
@@ -1213,7 +1211,7 @@ xmbrs_wait_until_sent(struct tty_struct 
 
 	struct xmb_serial * info = (struct xmb_serial *)tty->driver_data;
 	volatile unsigned int *uartp;
-	unsigned long orig_jiffies, fifo_time, char_time, fifo_cnt;
+	unsigned long orig_jiffies, fifo_time, char_time;
 	
 	if (serial_paranoia_check(info, tty->device, "xmbrs_wait_until_sent"))
 		return;
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/