From 925396b4ac323779df3c807eb5c292bfdb5341ee Mon Sep 17 00:00:00 2001 From: kre Date: Tue, 1 May 2018 21:28:39 +0000 Subject: [PATCH] Change return type of pm_lvm_find() from int to void. It always returns (returned) 0 which was ignored by the one call. --- usr.sbin/sysinst/partman.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.sbin/sysinst/partman.c b/usr.sbin/sysinst/partman.c index 280956f521d4..ba43084e690b 100644 --- a/usr.sbin/sysinst/partman.c +++ b/usr.sbin/sysinst/partman.c @@ -1,4 +1,4 @@ -/* $NetBSD: partman.c,v 1.20 2018/05/01 21:26:41 kre Exp $ */ +/* $NetBSD: partman.c,v 1.21 2018/05/01 21:28:39 kre Exp $ */ /* * Copyright 2012 Eugene Lozovoy @@ -1173,7 +1173,7 @@ pm_cgd_commit(void) /* Add lvm logical volumes to pm list */ /* XXX: rewrite */ -static int +static void pm_lvm_find(void) { int i, ii, already_found; @@ -1213,7 +1213,6 @@ pm_lvm_find(void) memset(pm_new, 0, sizeof *pm_new); } } - return 0; } static int