USB: pl2303: remove unreachable code
authorMichał Sroczyński <msroczyn@gmail.com>
Thu, 25 Aug 2011 17:52:27 +0000 (19:52 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 26 Aug 2011 18:27:50 +0000 (11:27 -0700)
Signed-off-by: Michal Sroczynski <msroczyn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/pl2303.c

index 1d33260de014f0ee3c39546567a2e61b867b7ebf..0ae840f789a45be017639dc9c539a015286d5e6c 100644 (file)
@@ -360,9 +360,6 @@ static void pl2303_set_termios(struct tty_struct *tty,
                                tmp >>= 2;
                                buf[1] <<= 1;
                        }
-                       if (tmp > 256) {
-                               tmp %= 256;
-                       }
                        buf[0] = tmp;
                }
        }