efivars: Refactor sanity checking code into separate function Move a large chunk of code that checks the validity of efi_variable into a new function, because we'll also need to use it for the compat code. Signed-off-by: Matt Fleming <matt.fleming@intel.com>