Update hv_kvp.c

Clean hv_kvp.c code