Re: [PATCH 00/62] Remove unnecessary semicolons

From: Boaz Harrosh
Date: Mon Jun 29 2009 - 05:48:22 EST


On 06/28/2009 07:26 PM, Joe Perches wrote:
> Found by script
> #! /bin/bash
>
> from=";\s*;\s*\n"
> to=";\n"
>
> for file in $(grep -rP --include=*.[ch] -li $from *) ; do
>
> perl -i -e \
> "local $/; while(<>) { s/$from/$to/g; print; }" $file
>
> done
>
> Some false positives removed manually
>

Do we want this in checkpatch.pl?
I do.

Boaz
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/