goldfish: remove unreachable line of code
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Thu, 19 Feb 2015 21:11:13 +0000 (21:11 +0000)
committerJiri Kosina <jkosina@suse.cz>
Fri, 6 Mar 2015 22:11:32 +0000 (23:11 +0100)
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/tty/goldfish.c

index 09495f515fa97805fb84d8c1362902f6255d0187..e423550c35160b9645c9199f87f527ceef747dbd 100644 (file)
@@ -293,7 +293,6 @@ static int goldfish_tty_probe(struct platform_device *pdev)
        mutex_unlock(&goldfish_tty_lock);
        return 0;
 
-       tty_unregister_device(goldfish_tty_driver, i);
 err_tty_register_device_failed:
        free_irq(irq, pdev);
 err_request_irq_failed: