]> git.baikalelectronics.ru Git - kernel.git/commit
efi/apple-properties: Remove redundant attribute initialization from unmarshal_key_va...
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 8 Mar 2018 08:00:10 +0000 (08:00 +0000)
committerIngo Molnar <mingo@kernel.org>
Fri, 9 Mar 2018 07:58:21 +0000 (08:58 +0100)
commiteaa1e92149c3ea4b9913b0276e259f4bc799077e
tree0cb9c434705e4736a97f4932abd85b6a463a09ec
parent3d14f1094a0fb5a244b18db71ef9a08ed473a7be
efi/apple-properties: Remove redundant attribute initialization from unmarshal_key_value_pairs()

There is no need to artificially supply a property length and fake data
if property has type of boolean.

Remove redundant piece of data and code.

Reviewed-and-tested-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20180308080020.22828-3-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/firmware/efi/apple-properties.c