[PATCH] serial moxa: fix wrong BUG
authorKirill Smelkov <kirr@mns.spb.ru>
Mon, 7 Nov 2005 08:59:23 +0000 (00:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 7 Nov 2005 15:53:36 +0000 (07:53 -0800)
commit6f08b72cdd4b99a190c4e1fcddd63b401e5b572d
treeb872d31a8f05f66fa3d00cf1271582dc0d354c7c
parent64698b694db96b8db6f379de7d2040f61c6fc7bf
[PATCH] serial moxa: fix wrong BUG

There is a wrong BUG in mxser_close.

The BUG is triggered when tty->driver_data == NULL, But in fact this is not
a bug, because tty->driver->close is called even when tty->driver->open
fails.

LDD3 tells us to do nothing in such cases.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/mxser.c