Cleanup: remove dead code and return the correct return code
Cleanup: remove dead code and return the correct return code

Coverity CID 207700

Signed-off-by: Dirk Hohndel <a00b27378a09822d5638cdfb8c2e7ccc36d74c56@hohndel.org>

henrik242/libdivecomputer,henrik242/libdivecomputer