Re: [PATCH] checkpatch: Warn on unnecessary void function return statements

Anish Bhatt
2014-06-17T00:24:39Z

This seems to ignore the ability to exit from void return functions via a `return;` in case of an error or similar. Any attempt to bail out generates warnings with checkpathch.pl Perhaps it should check for returns only at the end of the function ? If not, is there a suggested way to do this ? goto labels can't be directly used in place either

-Anish Bhatt