lv-tool: Remove obsolete error checks and unused code