From b7a586a5b45477b8728301977ad1855234ca6b6b Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 19 Oct 2020 19:50:21 +0200 Subject: [PATCH] core: remove create_device_node() from fixup_dive() The device nodes are created for all DCs, when importing the dives. There is no point in creating only the device node for the first DC in fixup_dive(). Signed-off-by: Berthold Stoeger --- core/dive.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/dive.c b/core/dive.c index 065000970..f25864905 100644 --- a/core/dive.c +++ b/core/dive.c @@ -1593,10 +1593,6 @@ static void fixup_no_o2sensors(struct divecomputer *dc) static void fixup_dive_dc(struct dive *dive, struct divecomputer *dc) { - /* Add device information to table */ - if (dc->deviceid && (dc->serial || dc->fw_version)) - create_device_node(&device_table, dc->model, dc->deviceid, dc->serial, dc->fw_version, ""); - /* Fixup duration and mean depth */ fixup_dc_duration(dc);