diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-07-10 22:11:45 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-10 13:26:48 -0700 |
commit | 94e66dbdd6cf5120b7e139909bc2da93a7ef2934 (patch) | |
tree | 0e521fb601bc61eafb299f599d71737ef9c73449 /planner.c | |
parent | a12976086e6be3f767a223df0504262cff84996b (diff) | |
download | subsurface-94e66dbdd6cf5120b7e139909bc2da93a7ef2934.tar.gz |
Remove unnecessary get_gasidx call
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -575,7 +575,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool continue; if (dp->time - lasttime < 10 && !(gaschange && dp->next && dp->depth != dp->next->depth)) continue; - gasidx = get_gasidx(dive, &gasmix); + len = strlen(buffer); if (nextdp && gasmix_distance(&gasmix, &newgasmix)) gaschange = true; |