From 5c91e9d9e44ab8804038b3d16636890fe1ab9d96 Mon Sep 17 00:00:00 2001 From: yidong0635 Date: Thu, 22 Oct 2020 12:05:04 -0400 Subject: [PATCH] event/app: Fix warning about unused value. Issue: app.c:700:7: warning: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc' if ((rc = app_setup_signal_handlers(opts)) != 0) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: yidong0635 Change-Id: I4912d37c8300c88afc7668b792039683addc94c0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4822 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Paul Luse Reviewed-by: Aleksey Marchuk Reviewed-by: Tomasz Zawadzki Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris --- lib/event/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/event/app.c b/lib/event/app.c index da50a88b9..8c18e1940 100644 --- a/lib/event/app.c +++ b/lib/event/app.c @@ -487,7 +487,7 @@ spdk_app_start(struct spdk_app_opts *opts, spdk_msg_fn start_fn, return 1; } - if ((rc = app_setup_signal_handlers(opts)) != 0) { + if (app_setup_signal_handlers(opts) != 0) { return 1; }