diff options
| -rw-r--r-- | drivers/tty/synclink_gt.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c index b8287a010336..e8a9047de451 100644 --- a/drivers/tty/synclink_gt.c +++ b/drivers/tty/synclink_gt.c | |||
| @@ -1185,14 +1185,13 @@ static long slgt_compat_ioctl(struct tty_struct *tty, | |||
| 1185 | unsigned int cmd, unsigned long arg) | 1185 | unsigned int cmd, unsigned long arg) |
| 1186 | { | 1186 | { |
| 1187 | struct slgt_info *info = tty->driver_data; | 1187 | struct slgt_info *info = tty->driver_data; |
| 1188 | int rc = -ENOIOCTLCMD; | 1188 | int rc; |
| 1189 | 1189 | ||
| 1190 | if (sanity_check(info, tty->name, "compat_ioctl")) | 1190 | if (sanity_check(info, tty->name, "compat_ioctl")) |
| 1191 | return -ENODEV; | 1191 | return -ENODEV; |
| 1192 | DBGINFO(("%s compat_ioctl() cmd=%08X\n", info->device_name, cmd)); | 1192 | DBGINFO(("%s compat_ioctl() cmd=%08X\n", info->device_name, cmd)); |
| 1193 | 1193 | ||
| 1194 | switch (cmd) { | 1194 | switch (cmd) { |
| 1195 | |||
| 1196 | case MGSL_IOCSPARAMS32: | 1195 | case MGSL_IOCSPARAMS32: |
| 1197 | rc = set_params32(info, compat_ptr(arg)); | 1196 | rc = set_params32(info, compat_ptr(arg)); |
| 1198 | break; | 1197 | break; |
| @@ -1212,18 +1211,11 @@ static long slgt_compat_ioctl(struct tty_struct *tty, | |||
| 1212 | case MGSL_IOCWAITGPIO: | 1211 | case MGSL_IOCWAITGPIO: |
| 1213 | case MGSL_IOCGXSYNC: | 1212 | case MGSL_IOCGXSYNC: |
| 1214 | case MGSL_IOCGXCTRL: | 1213 | case MGSL_IOCGXCTRL: |
| 1215 | case MGSL_IOCSTXIDLE: | 1214 | rc = ioctl(tty, cmd, (unsigned long)compat_ptr(arg)); |
| 1216 | case MGSL_IOCTXENABLE: | ||
| 1217 | case MGSL_IOCRXENABLE: | ||
| 1218 | case MGSL_IOCTXABORT: | ||
| 1219 | case TIOCMIWAIT: | ||
| 1220 | case MGSL_IOCSIF: | ||
| 1221 | case MGSL_IOCSXSYNC: | ||
| 1222 | case MGSL_IOCSXCTRL: | ||
| 1223 | rc = ioctl(tty, cmd, arg); | ||
| 1224 | break; | 1215 | break; |
| 1216 | default: | ||
| 1217 | rc = ioctl(tty, cmd, arg); | ||
| 1225 | } | 1218 | } |
| 1226 | |||
| 1227 | DBGINFO(("%s compat_ioctl() cmd=%08X rc=%d\n", info->device_name, cmd, rc)); | 1219 | DBGINFO(("%s compat_ioctl() cmd=%08X rc=%d\n", info->device_name, cmd, rc)); |
| 1228 | return rc; | 1220 | return rc; |
| 1229 | } | 1221 | } |
