From: Al Viro Date: Sat, 10 Sep 2011 00:20:52 +0000 (-0400) Subject: um: line->have_irq is never checked... X-Git-Tag: v3.4~368^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5eaa3411a80fe50b3a0333389e0e259c580869e9;p=platform%2Fkernel%2Flinux-amlogic.git um: line->have_irq is never checked... looks like a half-arsed duplicate of line->enabled Signed-off-by: Al Viro Signed-off-by: Richard Weinberger --- diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c index c1aa89c..08f6393 100644 --- a/arch/um/drivers/line.c +++ b/arch/um/drivers/line.c @@ -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; } diff --git a/arch/um/drivers/line.h b/arch/um/drivers/line.h index 6cb05a2..0a18347 100644 --- a/arch/um/drivers/line.h +++ b/arch/um/drivers/line.h @@ -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);