summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-03 21:24:52 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-03 21:40:56 -0800
commitd24d2288f30e8666667c5437802d22533a94e1ec (patch)
treefdfaa1befe6122a756da19af329b66c7e1778bc1 /profile.c
parent99b8e85d739387c0c8342535b28e010cdac74a5f (diff)
downloadsubsurface-d24d2288f30e8666667c5437802d22533a94e1ec.tar.gz
Remove pointless assignments
tissue_tolerance wasn't used after it was assigned. type was overwritten after it was assigned. serial was overwritten after the last /= 100. event is assigned in the for loop. clear isn't used after the assignment Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/profile.c b/profile.c
index c9f3892ab..b7f80f9f0 100644
--- a/profile.c
+++ b/profile.c
@@ -1194,8 +1194,8 @@ static void calculate_ndl_tts(double tissue_tolerance, struct plot_data *entry,
if (deco_allowed_depth(tissue_tolerance, surface_pressure, dive, 1) <= next_stop) {
/* move to the next stop and add the travel between stops */
for (; ascent_depth > next_stop; ascent_depth -= ascent_mm_per_deco_step, entry->tts_calc += ascent_s_per_deco_step)
- tissue_tolerance = add_segment(depth_to_mbar(ascent_depth, dive) / 1000.0,
- &dive->cylinder[cylinderindex].gasmix, ascent_s_per_deco_step, entry->po2 * 1000, dive);
+ add_segment(depth_to_mbar(ascent_depth, dive) / 1000.0,
+ &dive->cylinder[cylinderindex].gasmix, ascent_s_per_deco_step, entry->po2 * 1000, dive);
ascent_depth = next_stop;
next_stop -= deco_stepsize;
}