diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-04-09 12:39:03 -0400 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2015-04-25 12:46:08 +1000 |
commit | 77094e91defb04c859549cac26434cccbe4ddd82 (patch) | |
tree | 974b0ca5fed5ed25dfae4749b2ef2e649e46903a | |
parent | 7c8b1da6a1a28c94c4acd041f6797e2b13559415 (diff) | |
download | mongo-77094e91defb04c859549cac26434cccbe4ddd82.tar.gz |
const: At condition ret == -1, the value of ret must be equal to -1.
CID 72082 (#1 of 1): Redundant test (DEADCODE)
dead_error_condition: The condition ret == -1 must be true.
-rw-r--r-- | src/btree/bt_huffman.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/btree/bt_huffman.c b/src/btree/bt_huffman.c index 6604bd9c9e1..c75e9dfed83 100644 --- a/src/btree/bt_huffman.c +++ b/src/btree/bt_huffman.c @@ -359,9 +359,8 @@ __wt_huffman_read(WT_SESSION_IMPL *session, WT_CONFIG_ITEM *ip, tp->symbol = (uint32_t)symbol; tp->frequency = (uint32_t)frequency; } + ret = ferror(fp) ? WT_ERROR : 0; - if (ret == EOF) - ret = 0; *entriesp = lineno - 1; *tablep = table; |