lkml.org 
[lkml]   [2022]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH V2] rtla: Fix exit status when returning from calls to usage()
From
On 11/7/22 15:43, John Kacur wrote:
> rtla_usage(), osnoise_usage() and timerlat_usage() all exit with an
> error status.
>
> However when these are called from help, they should exit with a
> non-error status.
>
> Fix this by passing the exit status to the functions.
>
> Note, although we remove the subsequent call to exit after calling
> usage, we leave it in at the end of a function to suppress the compiler
> warning "control reaches end of a non-void function".
>
> Signed-off-by: John Kacur <jkacur@redhat.com>

Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>

Thanks!
-- Daniel

\
 
 \ /
  Last update: 2022-11-07 16:41    [W:0.127 / U:0.556 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site