The patch titled char: mxser, remove unnecessary tty test has been added to the -mm tree. Its filename is char-mxser-remove-unnecessary-tty-test.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: char: mxser, remove unnecessary tty test From: Jiri Slaby <jirislaby@xxxxxxxxx> Stanse found unnecessary test in mxser_startup. tty is dereferenced earlier, the test is superfluous. Remove it. Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Cc: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/char/mxser.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/char/mxser.c~char-mxser-remove-unnecessary-tty-test drivers/char/mxser.c --- a/drivers/char/mxser.c~char-mxser-remove-unnecessary-tty-test +++ a/drivers/char/mxser.c @@ -905,8 +905,7 @@ static int mxser_startup(struct tty_stru if (inb(info->ioaddr + UART_LSR) == 0xff) { spin_unlock_irqrestore(&info->slock, flags); if (capable(CAP_SYS_ADMIN)) { - if (tty) - set_bit(TTY_IO_ERROR, &tty->flags); + set_bit(TTY_IO_ERROR, &tty->flags); return 0; } else return -ENODEV; _ Patches currently in -mm which might be from jirislaby@xxxxxxxxx are char-vt_ioctl-fix-bkl-imbalance.patch linux-next.patch isdn-hisax-fix-lock-imbalance.patch isdn-eicon-use-offsetof.patch isdn-eicon-return-on-error.patch qla2xxx-fix-null-ptr-dereference-in-fail-path-in-queue-create-code.patch icom-converting-space-to-tabs.patch cyclades-read-buffer-overflow.patch serial167-fix-read-buffer-overflow.patch cyclades-allow-overriding-isa-defaults-also-when-the-driver-is-built-in.patch char-mxser-remove-unnecessary-tty-test.patch reiser4.patch fs-reiser4-add-parenths-around-x-y.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html