* [PATCH 0/2] TTY cleanups
@ 2008-06-23 11:06 Alan Cox
2008-06-23 11:06 ` [PATCH 1/2] tty_driver: Update required method documentation Alan Cox
2008-06-23 11:07 ` [PATCH 2/2] [PATCH] removed unused var real_tty on n_tty_ioctl() Alan Cox
0 siblings, 2 replies; 3+ messages in thread
From: Alan Cox @ 2008-06-23 11:06 UTC (permalink / raw)
To: torvalds, linux-kernel
Two small tty clean ups.
---
Alan Cox (1):
tty_driver: Update required method documentation
Gustavo Fernando Padovan (1):
removed unused var real_tty on n_tty_ioctl()
drivers/char/tty_ioctl.c | 7 -------
include/linux/tty_driver.h | 5 ++---
2 files changed, 2 insertions(+), 10 deletions(-)
--
With trembling hands he unfurled the ancient cracked parchment, this was
the place, it had to be. Uncertainly he began to mumble the chant "rdbms,
sql , third normal form, java, table, scalable". Something moved..
>From outside they heard a scream and a thud. The sales department had awoken
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] tty_driver: Update required method documentation
2008-06-23 11:06 [PATCH 0/2] TTY cleanups Alan Cox
@ 2008-06-23 11:06 ` Alan Cox
2008-06-23 11:07 ` [PATCH 2/2] [PATCH] removed unused var real_tty on n_tty_ioctl() Alan Cox
1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2008-06-23 11:06 UTC (permalink / raw)
To: torvalds, linux-kernel
Some of the requirement rules are now more relaxed. Also correct a
contradiction in the previous update
Signed-off-by: Alan Cox <alan@redhat.com>
---
include/linux/tty_driver.h | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h
index 59f1c0b..d2a0035 100644
--- a/include/linux/tty_driver.h
+++ b/include/linux/tty_driver.h
@@ -27,8 +27,7 @@
* This routine is called by the kernel to write a series of
* characters to the tty device. The characters may come from
* user space or kernel space. This routine will return the
- * number of characters actually accepted for writing. This
- * routine is mandatory.
+ * number of characters actually accepted for writing.
*
* Optional: Required for writable devices.
*
@@ -134,7 +133,7 @@
* This routine notifies the tty driver that it should hangup the
* tty device.
*
- * Required:
+ * Optional:
*
* void (*break_ctl)(struct tty_stuct *tty, int state);
*
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] [PATCH] removed unused var real_tty on n_tty_ioctl()
2008-06-23 11:06 [PATCH 0/2] TTY cleanups Alan Cox
2008-06-23 11:06 ` [PATCH 1/2] tty_driver: Update required method documentation Alan Cox
@ 2008-06-23 11:07 ` Alan Cox
1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2008-06-23 11:07 UTC (permalink / raw)
To: torvalds, linux-kernel
From: Gustavo Fernando Padovan <gustavo@las.ic.unicamp.br>
Hello,
I noted that the 'struct tty_struct *real_tty' is not used in this
function, so I removed the code about 'real_tty'. This little change
is on kernel 2.6.25.4, but aplies on 2.6.24 or greater.
Signed-off-by: Gustavo Fernando Padovan <gustavo@las.ic.unicamp.br>
Acked-by: Alan Cox <alan@redhat.com>
---
drivers/char/tty_ioctl.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/drivers/char/tty_ioctl.c b/drivers/char/tty_ioctl.c
index b1a757a..8f81139 100644
--- a/drivers/char/tty_ioctl.c
+++ b/drivers/char/tty_ioctl.c
@@ -981,16 +981,9 @@ EXPORT_SYMBOL_GPL(tty_perform_flush);
int n_tty_ioctl(struct tty_struct *tty, struct file *file,
unsigned int cmd, unsigned long arg)
{
- struct tty_struct *real_tty;
unsigned long flags;
int retval;
- if (tty->driver->type == TTY_DRIVER_TYPE_PTY &&
- tty->driver->subtype == PTY_TYPE_MASTER)
- real_tty = tty->link;
- else
- real_tty = tty;
-
switch (cmd) {
case TCXONC:
retval = tty_check_change(tty);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-23 11:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-23 11:06 [PATCH 0/2] TTY cleanups Alan Cox
2008-06-23 11:06 ` [PATCH 1/2] tty_driver: Update required method documentation Alan Cox
2008-06-23 11:07 ` [PATCH 2/2] [PATCH] removed unused var real_tty on n_tty_ioctl() Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome