]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Reduce code duplication
authorTobias Stoeckmann <tobias@stoeckmann.org>
Thu, 24 Oct 2024 18:49:05 +0000 (20:49 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 29 Oct 2024 02:55:10 +0000 (21:55 -0500)
commited28efa53bedcae980fabb12e41de6da4747dbe9
treeb26a860b98650890d9146f692e38c0b4d68d950b
parentdaccf4613f1cd26a62b753726771f5c8d87e09e3
libkmod: Reduce code duplication

If functions exist which cover the exact explicitly written code, use
them instead.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/211
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-elf.c
libkmod/libkmod-module.c