Re: [PATCH] checkpatch: Allow --fix removal of unnecessary break statements
From: Joe Perches
Date: Sun Oct 18 2020 - 16:19:29 EST
On Sun, 2020-10-18 at 13:07 -0700, Tom Rix wrote:
> I like!
[]
> could add a '|break' here to catch the couple
[]
> break;
>
> break;
Unfortunately, checkpatch is really stupid and it
wouldn't catch those
cases as there are blank lines
between the existing consecutive break
statements.
It would catch
break;
break;
but there aren't any of those so it seems unlikely
to be a very useful addition.