efivars: Refactor sanity checking code into separate function
authorMatt Fleming <matt.fleming@intel.com>
Mon, 17 Mar 2014 15:08:34 +0000 (15:08 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 17 Apr 2014 12:53:48 +0000 (13:53 +0100)
commit54d2fbfb0c9d341c891926100ed0e5d4c4b0c987
tree98f66a6f6fc09b9ecc84c07b95af323a6808098e
parenta5d92ad32dad94fd8f3f61778561d532bb3a2f77
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.

Cc: Mike Waychison <mikew@google.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/efi/efivars.c