Re: [PATCH 8/10] net/mac80211/scan.c: removes unnecessary semicolon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please note that there are some false positives reported by this
semantic patch, so I'm still working on it. I've removed lists from
CC, kept only kernel-janitors.

// <smpl>
@r_case@
position p;
@@
switch (...)
{
case ...: ...;@p
}

@r_default@
position p;
@@
switch (...)
{
default: ...;@p
}

@r1@
statement S;
position p1;
position p != {r_case.p, r_default.p};
identifier label;
@@
(
label:;
|
S@p1;@p
)

@script:python r2@
p << r1.p;
p_case << r_case.p;
p1 << r1.p1;
@@
if p[0].line != p1[0].line_end:
        cocci.include_match(False)
@@
position r1.p;
@@
-;@p
// </smpl>

On Fri, Sep 7, 2012 at 1:30 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:
> On Thu, 2012-09-06 at 18:09 +0200, Peter Senna Tschudin wrote:
>> From: Peter Senna Tschudin <peter.senna@xxxxxxxxx>
>>
>> removes unnecessary semicolon
>>
>> Found by Coccinelle: http://coccinelle.lip6.fr/
>
> Applied. It'd be nice to have the spatch, I guess :)
>
> johannes
>



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


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux