Commit bde1c93c authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] Fix ambiguous else in generic serial

Closes bugzilla #307
parent edf18527
...@@ -142,14 +142,14 @@ int gs_write(struct tty_struct * tty, int from_user, ...@@ -142,14 +142,14 @@ int gs_write(struct tty_struct * tty, int from_user,
/* Can't copy more? break out! */ /* Can't copy more? break out! */
if (c <= 0) break; if (c <= 0) break;
if (from_user) if (from_user) {
if (copy_from_user (port->xmit_buf + port->xmit_head, if (copy_from_user (port->xmit_buf + port->xmit_head,
buf, c)) { buf, c)) {
up (& port->port_write_sem); up (& port->port_write_sem);
return -EFAULT; return -EFAULT;
} }
else } else
memcpy (port->xmit_buf + port->xmit_head, buf, c); memcpy (port->xmit_buf + port->xmit_head, buf, c);
port -> xmit_cnt += c; port -> xmit_cnt += c;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment