[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <94a88d16d21540dabf1e2eb715b11b9a@DM2PR03MB365.namprd03.prod.outlook.com>
Date: Tue, 1 Apr 2014 20:03:50 +0000
From: Shruti Kanetkar <Shruti@...escale.com>
To: Florian Fainelli <f.fainelli@...il.com>
CC: Joe Perches <joe@...ches.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 Florian,
> -----Original Message-----
> From: Florian Fainelli [mailto:f.fainelli@...il.com]
> Sent: Tuesday, April 01, 2014 3:00 PM
> To: Kanetkar Shruti-B44454
> Cc: Joe Perches; netdev@...r.kernel.org; Medve Emilian-EMMEDVE1
> Subject: Re: [PATCH] net/phy: Remove return value for a void function
>
> Hi Shruti,
>
> 2014-04-01 12:53 GMT-07:00 Shruti Kanetkar <Shruti@...escale.com>:
> > Hello Joe,
> >
> > Thank you for sharing the script.
> > I shall give it a try and credit you for the script.
>
> Can you run this spatch throughout the drivers/net/phy/ files to begin
> with and see what interesting results it produces?
>
Yes, I shall definitely try that.
> Thanks!
>
> >
> >> -----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
>
>
>
> --
> Florian
>
Regards,
Shruti
Powered by blists - more mailing lists