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]
Date:	Mon, 23 Dec 2013 10:11:40 +0800
From:	chenweilong <chenweilong@...wei.com>
To:	Ben Hutchings <bhutchings@...arflare.com>
CC:	<davem@...emloft.net>, <kuznet@....inr.ac.ru>, <jmorris@...ei.org>,
	<yoshfuji@...ux-ipv6.org>, <kaber@...sh.net>,
	<steffen.klassert@...unet.com>, <herbert@...dor.apana.org.au>,
	<netdev@...r.kernel.org>, <netfilter-devel@...r.kernel.org>,
	<netfilter@...r.kernel.org>
Subject: Re: [patch net-next 6/7] ipv4: ERROR: code indent should use tabs
 where possible

On 2013/12/21 1:53, Ben Hutchings wrote:
> On Fri, 2013-12-20 at 19:57 +0800, Chen Weilong wrote:
>> From: Weilong Chen <chenweilong@...wei.com>
>>
>>
>> Signed-off-by: Weilong Chen <chenweilong@...wei.com>
>> ---
>>  net/ipv4/cipso_ipv4.c      | 6 +++---
>>  net/ipv4/sysctl_net_ipv4.c | 2 +-
>>  net/ipv4/xfrm4_mode_beet.c | 2 +-
>>  3 files changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/net/ipv4/cipso_ipv4.c b/net/ipv4/cipso_ipv4.c
>> index 4b59b6e..081f51a 100644
>> --- a/net/ipv4/cipso_ipv4.c
>> +++ b/net/ipv4/cipso_ipv4.c
>> @@ -1336,7 +1336,7 @@ static int cipso_v4_parsetag_rbm(const struct cipso_v4_doi *doi_def,
>>  
>>  	if (tag_len > 4) {
>>  		secattr->attr.mls.cat =
>> -		                       netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>> +				       netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>>  		if (secattr->attr.mls.cat == NULL)
>>  			return -ENOMEM;
>>  
>> @@ -1432,7 +1432,7 @@ static int cipso_v4_parsetag_enum(const struct cipso_v4_doi *doi_def,
>>  
>>  	if (tag_len > 4) {
>>  		secattr->attr.mls.cat =
>> -			               netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>> +				       netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>>  		if (secattr->attr.mls.cat == NULL)
>>  			return -ENOMEM;
>>  
>> @@ -1527,7 +1527,7 @@ static int cipso_v4_parsetag_rng(const struct cipso_v4_doi *doi_def,
>>  
>>  	if (tag_len > 4) {
>>  		secattr->attr.mls.cat =
>> -			               netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>> +				       netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>>  		if (secattr->attr.mls.cat == NULL)
>>  			return -ENOMEM;
>>  
> [...]
> 
> These lines are still excessively indented (one extra tab is enough),
> and could just be appended to the lines above them:
> 
> 		secattr->attr.mls.cat = netlbl_secattr_catmap_alloc(GFP_ATOMIC);
> 
> (exactly 80 columns long).
> 
> Ben.
> 
OK,
That's very good,
Thanks!

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ