|
@@ -549,16 +549,12 @@ static void x25_asy_receive_buf(struct tty_struct *tty,
|
|
|
|
|
|
static int x25_asy_open_tty(struct tty_struct *tty)
|
|
static int x25_asy_open_tty(struct tty_struct *tty)
|
|
{
|
|
{
|
|
- struct x25_asy *sl = tty->disc_data;
|
|
|
|
|
|
+ struct x25_asy *sl;
|
|
int err;
|
|
int err;
|
|
|
|
|
|
if (tty->ops->write == NULL)
|
|
if (tty->ops->write == NULL)
|
|
return -EOPNOTSUPP;
|
|
return -EOPNOTSUPP;
|
|
|
|
|
|
- /* First make sure we're not already connected. */
|
|
|
|
- if (sl && sl->magic == X25_ASY_MAGIC)
|
|
|
|
- return -EEXIST;
|
|
|
|
-
|
|
|
|
/* OK. Find a free X.25 channel to use. */
|
|
/* OK. Find a free X.25 channel to use. */
|
|
sl = x25_asy_alloc();
|
|
sl = x25_asy_alloc();
|
|
if (sl == NULL)
|
|
if (sl == NULL)
|