diff options
| author | Sheetal Pamecha <sheetal.pamecha08@gmail.com> | 2018-12-28 10:44:32 +0530 | 
|---|---|---|
| committer | Amar Tumballi <amarts@redhat.com> | 2018-12-28 10:40:49 +0000 | 
| commit | 8d38c5b7337e44ad9f282966c0aa2e99bd7da506 (patch) | |
| tree | 05f01dced563ee80323c7e26c7741c143c6ad2f8 /rpc/rpc-lib/src | |
| parent | de1fb17ac392427605ead87690f30f1a488f66a7 (diff) | |
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 <sheetal.pamecha08@gmail.com>
Diffstat (limited to 'rpc/rpc-lib/src')
| -rw-r--r-- | rpc/rpc-lib/src/rpcsvc.c | 4 | 
1 files changed, 0 insertions, 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) {  | 
