diff options
| author | F. Aragon <paco@voltanet.io> | 2018-10-02 11:05:40 +0200 |
|---|---|---|
| committer | F. Aragon <paco@voltanet.io> | 2018-10-02 15:45:44 +0200 |
| commit | b5891e154b6b06296678d9c8297851e931752b49 (patch) | |
| tree | e4a1412f969dc3dcdfa6d30c12fcb471a7fad880 /lib/command.c | |
| parent | 2268d8cfe787fd09247768795c20e9ce9eccd402 (diff) | |
zebra: dead code (Coverity 1465497)
The condition in the do/while is always false because 'return_nsid' cannot
reach the end of the loop with 'return_nsid' having a different value than
NS_UNKNOWN. Because of that, the condition can be replaced with 0 (false).
Also, the loop can be removed because the two assignments made at the end
of the loop before the condition check are not used (detected via Clang,
afterwards).
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions
