uemis import: disable seemingly dead code

This is probably related to another commented out piece of code.
Disable until someone complains.

Fixes a (good) Coverity warning.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-08-13 22:26:29 +02:00 committed by Michael Keller
parent df568fbb5d
commit 1fc5a294a6

View file

@ -1293,8 +1293,10 @@ std::string do_uemis_import(device_data_t *data)
/* process the buffer we have assembled */
if (!process_raw_buffer(data, deviceidnr, realmbuf, newmax, NULL)) {
/* if no dives were downloaded, mark end appropriately */
if (end == -2)
end = start - 1;
/* Might be related to the "clean up mbuf" below.
* Disable for now, since end will be overwritten anyway */
//if (end == -2)
//end = start - 1;
success = false;
}
if (once) {