[PATCH] lib: remove extra characters ending comment blocks

Stephen Hemminger stephen at networkplumber.org
Thu Jan 29 21:14:14 CET 2026


On Thu, 29 Jan 2026 15:47:48 +0100
Thomas Monjalon <thomas at monjalon.net> wrote:

> At the end of a comment, no need for an extra line.
> 
> This pattern was fixed with the following command:
> git ls lib | xargs sed -i '/^ *\* *$/{N;/ *\*\/ *$/D;}'
> 
> A comment should always be terminated with */
> 
> Extra asterisks were found with this command:
> git grep '\* *\*/' lib
> 
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>

Acked-by: Stephen Hemminger <stephen at networkplumber.org>

Should look at examples and drivers as well.
Maybe add this to the AGENTS auto review script.


More information about the dev mailing list