setserial: small fix
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 2 May 2011 00:47:25 +0000 (02:47 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 2 May 2011 00:47:25 +0000 (02:47 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/setserial.c

index 501beaacc0bb1368f527373d8c90f166e1667712..2951b987d588a26451b7a14fbef2022715020e38 100644 (file)
@@ -687,7 +687,7 @@ static void serial_set(char **arg, int opts)
                case CMD_SPD_SHI:
                case CMD_SPD_WARP:
                case CMD_SPD_CUST:
-                       serinfo.flags &= ASYNC_SPD_MASK;
+                       serinfo.flags &= ~ASYNC_SPD_MASK;
                        /* fallthrough */
                case CMD_FLAG_SAK:
                case CMD_FLAG_FOURPORT: