Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142278
b: refs/heads/master
c: 0e0fd7d
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Apr 6, 2009
1 parent 80344c5 commit 0528640
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bbb8e6bf10c5c3c9c70a94aa26cb27f95f10dee5
refs/heads/master: 0e0fd7d73ed130583dca16405b029f56bf65109f
9 changes: 5 additions & 4 deletions trunk/drivers/char/moxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1486,11 +1486,11 @@ static int moxa_poll_port(struct moxa_port *p, unsigned int handle,
}

if (!handle) /* nothing else to do */
return 0;
goto put;

intr = readw(ip); /* port irq status */
if (intr == 0)
return 0;
goto put;

writew(0, ip); /* ACK port */
ofsAddr = p->tableAddr;
Expand All @@ -1499,16 +1499,17 @@ static int moxa_poll_port(struct moxa_port *p, unsigned int handle,
ofsAddr + HostStat);

if (!inited)
return 0;
goto put;

if (tty && (intr & IntrBreak) && !I_IGNBRK(tty)) { /* BREAK */
tty_insert_flip_char(tty, 0, TTY_BREAK);
tty_schedule_flip(tty);
}
tty_kref_put(tty);

if (intr & IntrLine)
moxa_new_dcdstate(p, readb(ofsAddr + FlagStat) & DCD_state);
put:
tty_kref_put(tty);

return 0;
}
Expand Down

0 comments on commit 0528640

Please sign in to comment.