lv-tool: Minor code cleanup