Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95163
b: refs/heads/master
c: eb17455
h: refs/heads/master
i:
  95161: 6f915ff
  95159: 7770274
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Apr 30, 2008
1 parent 89ce985 commit 6f4396a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d6d162d495d7abf2bfcdffc73c0892f1179579a
refs/heads/master: eb1745529622f204733139bde2201eb4ee994c03
25 changes: 11 additions & 14 deletions trunk/drivers/char/riscom8.c
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ static int rc_ioctl(struct tty_struct * tty, struct file * filp,
{
struct riscom_port *port = (struct riscom_port *)tty->driver_data;
void __user *argp = (void __user *)arg;
int retval;
int retval = 0;

if (rc_paranoia_check(port, tty->name, "rc_ioctl"))
return -ENODEV;
Expand All @@ -1406,23 +1406,20 @@ static int rc_ioctl(struct tty_struct * tty, struct file * filp,
tty_wait_until_sent(tty, 0);
rc_send_break(port, arg ? arg*(HZ/10) : HZ/4);
break;
case TIOCGSOFTCAR:
return put_user(C_CLOCAL(tty) ? 1 : 0, (unsigned __user *)argp);
case TIOCSSOFTCAR:
if (get_user(arg,(unsigned __user *) argp))
return -EFAULT;
tty->termios->c_cflag =
((tty->termios->c_cflag & ~CLOCAL) |
(arg ? CLOCAL : 0));
case TIOCGSERIAL:
lock_kernel();
retval = rc_get_serial_info(port, argp);
unlock_kernel();
break;
case TIOCGSERIAL:
return rc_get_serial_info(port, argp);
case TIOCSSERIAL:
return rc_set_serial_info(port, argp);
lock_kernel();
retval = rc_set_serial_info(port, argp);
unlock_kernel();
break;
default:
return -ENOIOCTLCMD;
retval = -ENOIOCTLCMD;
}
return 0;
return retval;
}

static void rc_throttle(struct tty_struct * tty)
Expand Down

0 comments on commit 6f4396a

Please sign in to comment.