Fix build after previous
authormiod <miod@openbsd.org>
Sun, 11 Sep 2022 07:38:33 +0000 (07:38 +0000)
committermiod <miod@openbsd.org>
Sun, 11 Sep 2022 07:38:33 +0000 (07:38 +0000)
usr.sbin/installboot/loongson_installboot.c

index e4ddb6c..e91f135 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: loongson_installboot.c,v 1.5 2022/09/09 15:53:16 kn Exp $     */
+/*     $OpenBSD: loongson_installboot.c,v 1.6 2022/09/11 07:38:33 miod Exp $   */
 /*     $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
 
 /*
@@ -90,8 +90,8 @@ md_installboot(int devfd, char *dev)
 
        part = findmbrfat(devfd, &dl);
        if (part != -1) {
-               if (write_filesystem(&dl, (char)part) == -1)
-                       exit(1);
+               write_filesystem(&dl, (char)part);
+               return;
        }
 }