]> Gentwo Git Trees - linux/.git/commit
tools/rtla: Remove unused optional option_index
authorCosta Shulyupin <costa.shul@redhat.com>
Thu, 2 Oct 2025 12:35:39 +0000 (15:35 +0300)
committerTomas Glozar <tglozar@redhat.com>
Thu, 20 Nov 2025 12:15:53 +0000 (13:15 +0100)
commit671314fce1c60913012e5643ffecdaa4578cfcb3
treef332f01e6271c371423b12720709209529ffc2d5
parent04fa6bf3736d727bb800dddb23c9a513969e565d
tools/rtla: Remove unused optional option_index

The longindex argument of getopt_long() is optional
and tied to the unused local variable option_index.

Remove it to shorten the four longest functions
and make the code neater.

Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
Reviewed-by: Tomas Glozar <tglozar@redhat.com>
Link: https://lore.kernel.org/r/20251002123553.389467-2-costa.shul@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/src/osnoise_hist.c
tools/tracing/rtla/src/osnoise_top.c
tools/tracing/rtla/src/timerlat_hist.c
tools/tracing/rtla/src/timerlat_top.c