diff options
author | Keith Bostic <keith@wiredtiger.com> | 2016-04-21 07:19:36 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2016-04-21 07:19:36 -0400 |
commit | 59fd2970abb5169462f18779999f750f7c39d069 (patch) | |
tree | cda7d100fad98a1cd0430a3a720301dab1aa78e2 /src | |
parent | d7b4bfe4daa6a34d34dfd9004a5bac1f99e82915 (diff) | |
download | mongo-59fd2970abb5169462f18779999f750f7c39d069.tar.gz |
WT-2570: Minor lint cleanups.
Don't jump to an error label if there's no work to do (this one
isn't so obviuos, but it was easy to avoid the lint complaint).
Diffstat (limited to 'src')
-rw-r--r-- | src/cursor/cur_join.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cursor/cur_join.c b/src/cursor/cur_join.c index 4d0354c9f09..0ba94079d63 100644 --- a/src/cursor/cur_join.c +++ b/src/cursor/cur_join.c @@ -796,17 +796,18 @@ __curjoin_entries_in_range(WT_SESSION_IMPL *session, WT_CURSOR_JOIN *cjoin, fastret = WT_NOTFOUND; slowret = 0; } - pos = (iter == NULL ? 0 : iter->entry_pos); + pos = iter == NULL ? 0 : iter->entry_pos; for (entry = &cjoin->entries[pos]; pos < cjoin->entries_next; entry++, pos++) { ret = __curjoin_entry_member(session, entry, curkey, iter); if (ret == fastret) return (fastret); if (ret != slowret) - WT_ERR(ret); + break; iter = NULL; } -err: return (ret == 0 ? slowret : ret); + + return (ret == 0 ? slowret : ret); } /* |