]> git.ipfire.org Git - thirdparty/kmod.git/commit
static-nodes: unify return statements
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 19 Feb 2025 18:35:51 +0000 (19:35 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 21 Feb 2025 19:51:08 +0000 (13:51 -0600)
commit51ba885d5bea5962b10788f0b2a36f806b74a690
tree51b8f41e87dc56e8813dd45df8591146a2d960d3
parent94131a4a343ca8384e1f0d410319c09dfeade25a
static-nodes: unify return statements

The write_* functions have different return statement handling. Unify
them by removing "else" if the if-block itself returns and also unify
the error handling by checking for the error case, leaving the success
return statement at the end of the function.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/285
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/static-nodes.c