aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/efibootmgr/efibootmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/efibootmgr/efibootmgr.c b/usr.sbin/efibootmgr/efibootmgr.c
index e12f869bd4b6..8c7ba82cb5a5 100644
--- a/usr.sbin/efibootmgr/efibootmgr.c
+++ b/usr.sbin/efibootmgr/efibootmgr.c
@@ -1034,7 +1034,7 @@ report_esp_device(bool do_dp, bool do_unix)
printf("%s\n", buf);
exit(0);
}
- if (efivar_device_path_to_unix_path(dp, &dev, &relpath, &abspath) < 0)
+ if (efivar_device_path_to_unix_path(dp, &dev, &relpath, &abspath) != 0)
errx(1, "Can't convert to unix path");
if (do_unix) {
if (abspath == NULL)