]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools/lsmod: 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)
commit1d1896d11c2ff5836c1203d8fd68b9dcef9b4888
treeba29143891e0d64375cf3a7b387d734b0bf4a745
parentb14c16ba373aabc92dbf04a20281bc9a3710861e
tools/lsmod: 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/lsmod.c