summaryrefslogtreecommitdiffstats
path: root/divelist.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 /divelist.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 'divelist.c')
-rw-r--r--divelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/divelist.c b/divelist.c
index 223205e27..2d8918784 100644
--- a/divelist.c
+++ b/divelist.c
@@ -188,7 +188,7 @@ int total_weight(struct dive *dive)
static int active_o2(struct dive *dive, struct divecomputer *dc, duration_t time)
{
int o2permille = dive->cylinder[0].gasmix.o2.permille;
- struct event *event = dc->events;
+ struct event *event;
if (!o2permille)
o2permille = O2_IN_AIR;