]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools/modinfo: return the errno from add_param()
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 May 2025 12:22:41 +0000 (13:22 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 20 May 2025 02:51:43 +0000 (21:51 -0500)
commite45e624e05e219223c025ff0edf3529bbdd66b15
tree485f0a36b3d6a8af5f87d8864f8af9a19f22f249
parentdf0f98bd34e373b352deacf35abfd0795a7f864b
tools/modinfo: return the errno from add_param()

The single caller of add_param() does not need the struct param*, so we
might as well return the error code directly. As a result we don't
manually overwrite errno.

Reference: https://github.com/kmod-project/kmod/issues/244
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/346
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/modinfo.c