Skip to content

Commit

Permalink
WT-2570: Minor lint cleanups.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
keithbostic committed Apr 21, 2016
1 parent d7b4bfe commit 59fd297
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cursor/cur_join.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 59fd297

Please sign in to comment.