efi/efi_test: Fix uninitialized variable 'rv'
authorIvan Hu <ivan.hu@canonical.com>
Tue, 18 Oct 2016 14:33:15 +0000 (15:33 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 18 Oct 2016 15:11:18 +0000 (17:11 +0200)
commit9c30a2199311df9a1f25d0586c96dfbb7e876cdf
treee95183b8ff423c019995af6b2ed8fbfbb4985de0
parent46b9b7135332d1e2c54e853108a5088ab28f2165
efi/efi_test: Fix uninitialized variable 'rv'

Fix minor issue found by CoverityScan:

  520        kfree(name);
  CID 1358932 (#1 of 1): Uninitialized scalar variable (UNINIT)17.
  uninit_use: Using uninitialized value rv.
  521        return rv;
  522}

Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20161018143318.15673-6-matt@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/firmware/efi/test/efi_test.c