> Subject: [PATCH] eal: ignore errors from sendmsg on cleanup
> 
> Silence a warning from Coverity.
> The call to rte_mp_sendmsg here is best effort during cleanup,
> no need to add additional error checking.
> 
> Coverity ID: 507471
> 
> Signed-off-by: Stephen Hemminger <[email protected]>

Acked-by: Ciara Loftus <[email protected]>

> ---
>  lib/eal/common/eal_common_proc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/eal/common/eal_common_proc.c
> b/lib/eal/common/eal_common_proc.c
> index b70e9189a4..3e1af1325b 100644
> --- a/lib/eal/common/eal_common_proc.c
> +++ b/lib/eal/common/eal_common_proc.c
> @@ -717,7 +717,7 @@ rte_mp_channel_cleanup(void)
>               memcpy(&msg.param, &req, sizeof(req));
>               msg.len_param = sizeof(req);
> 
> -             rte_mp_sendmsg(&msg);
> +             (void)rte_mp_sendmsg(&msg);
>       } else {
>               rte_mp_action_unregister(EAL_MP);
>       }
> --
> 2.53.0

Reply via email to