lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <DB904C5425BA6F4E8424B3B51A1414D16C9CB6EE64@NWD2CMBX1.ad.analog.com>
Date:	Tue, 19 Jul 2011 22:44:36 -0400
From:	"Zhang, Sonic" <Sonic.Zhang@...log.com>
To:	Joe Perches <joe@...ches.com>, Sonic Zhang <sonic.adi@...il.com>
CC:	Alan Cox <alan@...ux.intel.com>,
	"linux-serial@...r.kernel.org" <linux-serial@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH 1/2] serial:blackfin: Correct coding style in bfin
 serial driver.



>-----Original Message-----
>From: Joe Perches [mailto:joe@...ches.com]
>Sent: Tuesday, July 19, 2011 11:29 PM
>To: Sonic Zhang
>Cc: Alan Cox; linux-serial@...r.kernel.org;
>linux-kernel@...r.kernel.org; Zhang, Sonic
>Subject: Re: [PATCH 1/2] serial:blackfin: Correct coding style
>in bfin serial driver.
>
>On Tue, 2011-07-19 at 18:09 +0800, Sonic Zhang wrote:
>> From: Sonic Zhang <sonic.zhang@...log.com>
>[]
>> @@ -1091,10 +1090,18 @@
>bfin_serial_console_get_options(struct bfin_serial_port *uart,
>int *baud,
>>                              *parity = 'o';
>>              }
>>              switch (lcr & 0x03) {
>> -                    case 0: *bits = 5; break;
>> -                    case 1: *bits = 6; break;
>> -                    case 2: *bits = 7; break;
>> -                    case 3: *bits = 8; break;
>> +            case 0:
>> +                    *bits = 5;
>> +                    break;
>> +            case 1:
>> +                    *bits = 6;
>> +                    break;
>> +            case 2:
>> +                    *bits = 7;
>> +                    break;
>> +            case 3:
>> +                    *bits = 8;
>> +                    break;
>>              }
>
>Maybe just:
>       *bits = 5 + (lcr & 3);
>

Could be a new patch.

Sonic
>
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ