From: Geert Uytterhoeven Date: Tue, 20 Feb 2007 14:45:21 +0000 (+0100) Subject: [PATCH] tty_register_driver: Remove incorrect and superfluous cast X-Git-Tag: v2.6.21-rc1~55 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e5717c48ed52feebd59756578debd34eaeb9d262;p=linux-2.6-omap-h63xx.git [PATCH] tty_register_driver: Remove incorrect and superfluous cast tty_register_driver: Remove incorrect and superfluous cast (expected and passed types are both const char *) Signed-off-by: Geert Uytterhoeven Acked-by: Alan Cox Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 5289254e7ab..df467284ff4 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -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);