Skip to content

Commit

Permalink
nozomi: don't use flush_scheduled_work()
Browse files Browse the repository at this point in the history
flush_scheduled_work() in tty_exit() doesn't seem to target any
specific work.  If it was to flush work items used in tty generic
layer, they're already flushed properly during tty release.

flush_scheduled_work() is going away.  Remove the seemingly redundant
usage.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Tejun Heo authored and Greg Kroah-Hartman committed Feb 25, 2011
1 parent 8c6e911 commit 2c590f3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/tty/nozomi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1514,8 +1514,6 @@ static void __devexit tty_exit(struct nozomi *dc)

DBG1(" ");

flush_scheduled_work();

for (i = 0; i < MAX_PORT; ++i) {
struct tty_struct *tty = tty_port_tty_get(&dc->port[i].port);
if (tty && list_empty(&tty->hangup_work.entry))
Expand Down

0 comments on commit 2c590f3

Please sign in to comment.