diff options
author | Donald Sharp <sharpd@nvidia.com> | 2021-01-17 13:51:09 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2021-01-18 15:06:49 +0100 |
commit | 3a15018892e7d708023d3315474570a29969d080 (patch) | |
tree | 85435f96eb3c3cba146e18347395772715a8f8cc /zebra/dplane_fpm_nl.c | |
parent | pbrd: Prevent possible NULL use (diff) | |
download | frr-3a15018892e7d708023d3315474570a29969d080.tar.xz frr-3a15018892e7d708023d3315474570a29969d080.zip |
zebra: Tell SA that we are intentionally ignoring the return
Calling fpm_nl_enqueue we should expect a it fit or not
return value on the outgoing stream. This is not necessary
to check here because the while loop where we are checking this
already has ensured that the data being written will fit.
CID -> 1499854
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/dplane_fpm_nl.c')
-rw-r--r-- | zebra/dplane_fpm_nl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/zebra/dplane_fpm_nl.c b/zebra/dplane_fpm_nl.c index 51ce59c47..bf733e38f 100644 --- a/zebra/dplane_fpm_nl.c +++ b/zebra/dplane_fpm_nl.c @@ -1236,7 +1236,13 @@ static int fpm_process_queue(struct thread *t) if (ctx == NULL) break; - fpm_nl_enqueue(fnc, ctx); + /* + * Intentionally ignoring the return value + * as that we are ensuring that we can write to + * the output data in the STREAM_WRITEABLE + * check above, so we can ignore the return + */ + (void)fpm_nl_enqueue(fnc, ctx); /* Account the processed entries. */ processed_contexts++; |