efivarfs: Replace magic number with sizeof(attributes)
authorMatt Fleming <matt.fleming@intel.com>
Mon, 22 Oct 2012 14:23:29 +0000 (15:23 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 30 Oct 2012 10:39:26 +0000 (10:39 +0000)
commitd292384152fdd465dba792d555ce5db83e94efa0
tree9d221602e997270c66aa4565bc1d73280cbf5098
parent7253eaba7b179db2e07e67c5b78d5f10b332291d
efivarfs: Replace magic number with sizeof(attributes)

Seeing "+ 4" littered throughout the functions gets a bit
confusing. Use "sizeof(attributes)" which clearly explains what
quantity we're adding.

Acked-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/efivars.c