Simplify control flow in proc_name2map().