]> git.ipfire.org Git - thirdparty/kmod.git/commit
shared: remove unreachable snprintf error case
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 May 2025 10:58:56 +0000 (11:58 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 9 May 2025 18:52:46 +0000 (13:52 -0500)
commit9615035e7b8b05b6033883f87a4fd6912040ccd7
tree83c87ba535b88c9aa39e5f2b1dc97dcfa75d9b6e
parent6c5e7997a13d3950414b8112a54c1ef8a4aaa22f
shared: remove unreachable snprintf error case

It is practically impossible for `/proc/self/fd/%d` to result in a
string of PATH_MAX size. Remove the unreachable error handling.

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