Messages in this thread | | | Subject | Re: [PATCH] checkpatch: Allow --fix removal of unnecessary break statements | From | Joe Perches <> | Date | Sun, 18 Oct 2020 13:19:24 -0700 |
| |
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.
| |