]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools/depmod: explicitly return ENOMEM on hash_new() failure
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 4 Jun 2025 16:16:25 +0000 (17:16 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 11 Jun 2025 13:03:26 +0000 (08:03 -0500)
commit137e47880f3c8ac7c5b687442d3548eab2fa381b
tree32b55d4e342fe2106b7436640c91dddae788cc2e
parente8e412239037669b89aa657a3a9d7d7b9bddd3e7
tools/depmod: explicitly return ENOMEM on hash_new() failure

The function will always set errno of ENOMEM, so we might as well use
that. Making the code more consistent and removing a few bytes/LoC.

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