From bddfde96151da727a4e005a8221ab5dd82eb6086 Mon Sep 17 00:00:00 2001 From: Yehezkel Bernat Date: Thu, 3 Oct 2019 18:01:59 +0300 Subject: [PATCH] Fix usage of incorrect type for return value This seems like a bug, as `FALSE` == `0` == `VALIDATION_PASSED` --- plugins/thunderbolt/fu-thunderbolt-image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/thunderbolt/fu-thunderbolt-image.c b/plugins/thunderbolt/fu-thunderbolt-image.c index c88aed9b0..38132e71c 100644 --- a/plugins/thunderbolt/fu-thunderbolt-image.c +++ b/plugins/thunderbolt/fu-thunderbolt-image.c @@ -684,7 +684,7 @@ fu_thunderbolt_image_validate (GBytes *controller_fw, g_set_error (error, FWUPD_ERROR, FWUPD_ERROR_NOT_SUPPORTED, "Unknown controller"); - return FALSE; + return VALIDATION_FAILED; } hw_info = &unknown; }