]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: return bool from lookup_builtin_file()
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 4 Nov 2024 14:32:39 +0000 (14:32 +0000)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 7 Nov 2024 19:43:49 +0000 (13:43 -0600)
commit69a512f7d149f49b4057907891ab0bfc4e8a836e
treeb054ab691282f471af8abb109a0304dcd7c5a576
parent3489c2d0f4dfa8c84f6a7609f35d9596f5d81ec3
libkmod: return bool from lookup_builtin_file()

The callers are interested if the file is within the list of builtins or
not. So change the return type and push the free() down the stack.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/224
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod.c