[PATCH] tty_register_driver: Remove incorrect and superfluous cast
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Tue, 20 Feb 2007 14:45:21 +0000 (15:45 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 20 Feb 2007 18:13:45 +0000 (10:13 -0800)
tty_register_driver: Remove incorrect and superfluous cast (expected and passed
types are both const char *)

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c

index 5289254..df46728 100644 (file)
@@ -3713,15 +3713,14 @@ int tty_register_driver(struct tty_driver *driver)
 
        if (!driver->major) {
                error = alloc_chrdev_region(&dev, driver->minor_start, driver->num,
-                                               (char*)driver->name);
+                                               driver->name);
                if (!error) {
                        driver->major = MAJOR(dev);
                        driver->minor_start = MINOR(dev);
                }
        } else {
                dev = MKDEV(driver->major, driver->minor_start);
-               error = register_chrdev_region(dev, driver->num,
-                                               (char*)driver->name);
+               error = register_chrdev_region(dev, driver->num, driver->name);
        }
        if (error < 0) {
                kfree(p);