From d50e0d73925ffda0c718864acf3257ea0a98a9ed Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 5 Oct 2002 21:57:05 +0000 Subject: Don't be noisy if DIOCWLABEL fails, it's probably because we're writing the first label to the raw disk. Sponsored by: DARPA & NAI Labs. --- sbin/disklabel/disklabel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sbin/disklabel') diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index 81efae5..dd3e241 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -468,8 +468,7 @@ writelabel(int f, const char *boot, struct disklabel *lp) * disable after writing. */ flag = 1; - if (ioctl(f, DIOCWLABEL, &flag) < 0) - warn("ioctl DIOCWLABEL"); + (void)ioctl(f, DIOCWLABEL, &flag); if (write(f, boot, lp->d_bbsize) != (int)lp->d_bbsize) { warn("write"); return (1); -- cgit v1.1