commit | 94a193fb7393a50625abd9ca21f8afea275a9f87 | [log] [tgz] |
---|---|---|
author | Matt Fleming <matt.fleming@intel.com> | Fri Jan 11 13:30:46 2013 +0000 |
committer | Matt Fleming <matt.fleming@intel.com> | Thu Jan 31 14:44:44 2013 +0000 |
tree | 3a2ae392ae294bc5f67da5f43f725819f8a1a913 | |
parent | deb94101c4fda22e152c2a311210cf09ae51adf6 [diff] |
efivarfs: Use sizeof() instead of magic number Instead of adding a magic 4 to the variable size, use sizeof() to make it explicitly clear what the quantity represents (the variable's attributes). CC: Jeremy Kerr <jeremy.kerr@canonical.com> Cc: Chun-Yi Lee <joeyli.kernel@gmail.com> Cc: Andy Whitcroft <apw@canonical.com> Reported-by: Lingzhu Xiang <lxiang@redhat.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>