Optimize _lp_smart_mark more: case .. esac

Use a 'case..esac' in _lp_smart_mark.