summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-02 17:41:02 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-02 17:41:02 -0400
commitae854ff82277c632fc3e10683780ab64d1a36cb2 (patch)
tree01e6ef10a366334e97b8858a15adf073ce5e7929
parentd9bbb97bd0b8214d9f072b79858f030da3b43eff (diff)
downloadsubsurface-ae854ff82277c632fc3e10683780ab64d1a36cb2.tar.gz
Remove pointless assignment
In every code path stopping is overwritten before it is ever accessed. Coverity CID 1325278 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--planner.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/planner.c b/planner.c
index 8964bb48b..4a2fb3439 100644
--- a/planner.c
+++ b/planner.c
@@ -1118,8 +1118,6 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool
}
if (best_first_ascend_cylinder != current_cylinder) {
- stopping = true;
-
current_cylinder = best_first_ascend_cylinder;
gas = displayed_dive.cylinder[current_cylinder].gasmix;