diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2007-02-20 09:45:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-20 13:13:45 -0500 |
commit | e5717c48ed52feebd59756578debd34eaeb9d262 (patch) | |
tree | d5d122229a6fdccc6573774036624e2953a7fb6f /drivers/char/tty_io.c | |
parent | 1ca949299260aa49eeba34ff912e2321c8b1f647 (diff) |
[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 <Geert.Uytterhoeven@sonycom.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r-- | drivers/char/tty_io.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 5289254e7ab3..df467284ff4e 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) | |||
3713 | 3713 | ||
3714 | if (!driver->major) { | 3714 | if (!driver->major) { |
3715 | error = alloc_chrdev_region(&dev, driver->minor_start, driver->num, | 3715 | error = alloc_chrdev_region(&dev, driver->minor_start, driver->num, |
3716 | (char*)driver->name); | 3716 | driver->name); |
3717 | if (!error) { | 3717 | if (!error) { |
3718 | driver->major = MAJOR(dev); | 3718 | driver->major = MAJOR(dev); |
3719 | driver->minor_start = MINOR(dev); | 3719 | driver->minor_start = MINOR(dev); |
3720 | } | 3720 | } |
3721 | } else { | 3721 | } else { |
3722 | dev = MKDEV(driver->major, driver->minor_start); | 3722 | dev = MKDEV(driver->major, driver->minor_start); |
3723 | error = register_chrdev_region(dev, driver->num, | 3723 | error = register_chrdev_region(dev, driver->num, driver->name); |
3724 | (char*)driver->name); | ||
3725 | } | 3724 | } |
3726 | if (error < 0) { | 3725 | if (error < 0) { |
3727 | kfree(p); | 3726 | kfree(p); |