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] [thread-next>] [day] [month] [year] [list]
Message-ID: <62eb4c507b904928a6b5891113153f18@DM2PR03MB365.namprd03.prod.outlook.com>
Date:	Tue, 1 Apr 2014 19:53:52 +0000
From:	Shruti Kanetkar <Shruti@...escale.com>
To:	Joe Perches <joe@...ches.com>
CC:	"f.fainelli@...il.com" <f.fainelli@...il.com>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	Emilian Medve <Emilian.Medve@...escale.com>
Subject: RE: [PATCH] net/phy: Remove return value for a void function

Hello Joe,

Thank you for sharing the script.
I shall give it a try and credit you for the script.

> -----Original Message-----
> From: Joe Perches [mailto:joe@...ches.com]
> Sent: Tuesday, April 01, 2014 1:04 PM
> To: Kanetkar Shruti-B44454
> Cc: f.fainelli@...il.com; netdev@...r.kernel.org; Medve Emilian-EMMEDVE1
> Subject: Re: [PATCH] net/phy: Remove return value for a void function
> 
> Here's a spatch script for this:
> 
> $ cat void_return.cocci
> @@
> identifier func;
> expression S;
> @@
> void func(...) {
> ...
> 	if (...)
> -		return S;
> +		{ S; return; }
> ...
> }
> 
> @@
> identifier func;
> expression S;
> @@
> void func(...) {
> ...
> 	if (...) {
> ...
> -		return S;
> +		S;
> 	}
> ...
> }
> 
> @@
> identifier func;
> expression S;
> @@
> void func(...) {
> ...
> -	return S;
> +	S;
> }
> 
> 
> 

Regards,
Shruti
--
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