diff options
Diffstat (limited to 'sbin/disklabel')
-rw-r--r-- | sbin/disklabel/disklabel.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |