]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools/rmmod: minor getopt tweaks
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 19 Oct 2024 17:11:17 +0000 (18:11 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 22 Oct 2024 15:37:11 +0000 (10:37 -0500)
commit1b459ab9a5d8f8a22d5b2cd8d3f6317d3f35813d
tree8fa83d6f9b7e6cc842c5487c338f23c408ae95f9
parent1d1896d11c2ff5836c1203d8fd68b9dcef9b4888
tools/rmmod: minor getopt tweaks

Adjust the loop to follow the in-documentation example.

Namely, we don't need the unused idx and removing the seemingly
infinite loop helps static analysers better reason about the code flow.

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