From 8d38c5b7337e44ad9f282966c0aa2e99bd7da506 Mon Sep 17 00:00:00 2001 From: Sheetal Pamecha Date: Fri, 28 Dec 2018 10:44:32 +0530 Subject: rpc/rpc-lib: fix coverity issue Defect: Code can never be reached because of the condition queue_index > 1024 cannot be true. CID: 1398471 Logically dead code updates: bz#789278 Change-Id: I367cda7e734f6d774900a58d8664cffcab69126f Signed-off-by: Sheetal Pamecha --- rpc/rpc-lib/src/rpcsvc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/rpc/rpc-lib/src/rpcsvc.c b/rpc/rpc-lib/src/rpcsvc.c index 5342376da46..c057b6f3cb9 100644 --- a/rpc/rpc-lib/src/rpcsvc.c +++ b/rpc/rpc-lib/src/rpcsvc.c @@ -122,10 +122,6 @@ rpcsvc_get_free_queue_index(rpcsvc_program_t *prog) } else { queue_index = i * 8; queue_index += right_most_unset_bit; - - if (queue_index > EVENT_MAX_THREADS) { - queue_index = -1; - } } if (queue_index != -1) { -- cgit