From 6bb1b1c81fbcea5d46eb590045fafc7d7e6e4b79 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 9 Sep 2022 11:13:12 +0100 Subject: [PATCH] trivial: Fix a BIOS setting self test value PVS: The 'ret' variable is assigned but is not used by the end of the function. --- libfwupd/fwupd-self-test.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libfwupd/fwupd-self-test.c b/libfwupd/fwupd-self-test.c index fad4c1b00..649db344a 100644 --- a/libfwupd/fwupd-self-test.c +++ b/libfwupd/fwupd-self-test.c @@ -1487,17 +1487,20 @@ fwupd_bios_settings_func(void) g_assert_nonnull(json2); ret = fu_test_compare_lines(json2, "{\n" - " \"BiosSettingReadOnly\" : \"false\",\n" - " \"BiosSettingType\" : 1,\n" " \"Name\" : \"UEFISecureBoot\",\n" " \"Description\" : \"Controls Secure boot\",\n" " \"Filename\" : \"/path/to/bar\",\n" + " \"BiosSettingCurrentValue\" : \"Disabled\",\n" + " \"BiosSettingReadOnly\" : \"false\",\n" + " \"BiosSettingType\" : 1,\n" " \"BiosSettingPossibleValues\" : [\n" " \"Disabled\",\n" " \"Enabled\"\n" " ]\n" "}", &error); + g_assert_no_error(error); + g_assert_true(ret); } int