Style nits + provide getreg_val proto conditionally.  Removed unused var.
Style nits + provide getreg_val proto conditionally.  Removed unused var.

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars