[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1396375445.21529.95.camel@joe-AO722>
Date: Tue, 01 Apr 2014 11:04:05 -0700
From: Joe Perches <joe@...ches.com>
To: Shruti@...escale.com
Cc: f.fainelli@...il.com, netdev@...r.kernel.org,
emmedve1@...escale.com
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;
}
--
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