diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/tty_io.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index bfdb90242a90..d6e4eaa48538 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c | |||
@@ -3094,7 +3094,6 @@ int tty_register_driver(struct tty_driver *driver) | |||
3094 | driver->cdev.owner = driver->owner; | 3094 | driver->cdev.owner = driver->owner; |
3095 | error = cdev_add(&driver->cdev, dev, driver->num); | 3095 | error = cdev_add(&driver->cdev, dev, driver->num); |
3096 | if (error) { | 3096 | if (error) { |
3097 | cdev_del(&driver->cdev); | ||
3098 | unregister_chrdev_region(dev, driver->num); | 3097 | unregister_chrdev_region(dev, driver->num); |
3099 | driver->ttys = NULL; | 3098 | driver->ttys = NULL; |
3100 | driver->termios = driver->termios_locked = NULL; | 3099 | driver->termios = driver->termios_locked = NULL; |