]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix ambiguous else in generic serial
authorDave Jones <davej@codemonkey.org.uk>
Thu, 27 Feb 2003 00:44:44 +0000 (16:44 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 27 Feb 2003 00:44:44 +0000 (16:44 -0800)
Closes bugzilla #307

drivers/char/generic_serial.c

index 8292ec37e316ef3ce2fa5faebb606e60f24af735..a29bf19fdf384698f8381a16a705db1e9bf84a1c 100644 (file)
@@ -142,14 +142,14 @@ int gs_write(struct tty_struct * tty, int from_user,
  
                /* Can't copy more? break out! */
                if (c <= 0) break;
-               if (from_user)
+               if (from_user) {
                        if (copy_from_user (port->xmit_buf + port->xmit_head, 
                                            buf, c)) {
                                up (& port->port_write_sem);
                                return -EFAULT;
                        }
 
-               else
+               } else
                        memcpy (port->xmit_buf + port->xmit_head, buf, c);
 
                port -> xmit_cnt += c;