um: line->have_irq is never checked...
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 10 Sep 2011 00:20:52 +0000 (20:20 -0400)
committerRichard Weinberger <richard@nod.at>
Sat, 24 Mar 2012 23:29:54 +0000 (00:29 +0100)
looks like a half-arsed duplicate of line->enabled

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/line.c
arch/um/drivers/line.h

index c1aa89cefaecc036cf06cce9f34bf7eda0a99738..08f63930da8b0563688fe066c8da365d0e0d1741 100644 (file)
@@ -383,7 +383,6 @@ int line_setup_irq(int fd, int input, int output, struct line *line, void *data)
                err = um_request_irq(driver->write_irq, fd, IRQ_WRITE,
                                        line_write_interrupt, flags,
                                        driver->write_irq_name, data);
-       line->have_irq = 1;
        return err;
 }
 
index 6cb05a22e9b03af310678d15186001bcd7f77b5f..0a1834719dbaff1e0d6afa6333c1df3a4f8274db 100644 (file)
@@ -56,7 +56,6 @@ struct line {
        int sigio;
        struct delayed_work task;
        const struct line_driver *driver;
-       int have_irq;
 };
 
 extern void line_close(struct tty_struct *tty, struct file * filp);