Re: [PATCH] pl2303: fixed handling of CS5 setting. 5 databits work now

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 03, 2013 at 06:11:23PM +0100, Johan Hovold wrote:

> >> +       switch (C_CSIZE(tty)) {
> >> +       case CS5:
> >> +               buf[6] = 5;
> >> +               break;
> >> +       case CS6:
> >> +               buf[6] = 6;
> >> +               break;
> >> +       case CS7:
> >> +               buf[6] = 7;
> >> +               break;
> >> +       default:
> >
> > You can drop the default-case as CSIZE is a two-bit mask.

Nevermind. Just leave it there to keep gcc happy.

Thanks,
Johan

> +       case CS8:
> +               buf[6] = 8;
>         }
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux