Relax the KASSERT since an equal size is no issue

This commit is contained in:
reinoud 2014-12-03 21:34:55 +00:00
parent 62d7bff7c1
commit a2b485ee86
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: udf_allocation.c,v 1.36 2013/10/30 08:41:38 mrg Exp $ */
/* $NetBSD: udf_allocation.c,v 1.37 2014/12/03 21:34:55 reinoud Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
__KERNEL_RCSID(0, "$NetBSD: udf_allocation.c,v 1.36 2013/10/30 08:41:38 mrg Exp $");
__KERNEL_RCSID(0, "$NetBSD: udf_allocation.c,v 1.37 2014/12/03 21:34:55 reinoud Exp $");
#endif /* not lint */
@ -2954,7 +2954,7 @@ udf_shrink_node(struct udf_node *udf_node, uint64_t new_size)
error = 0;
/* clear the space in the descriptor */
KASSERT(old_size > new_size);
KASSERT(old_size >= new_size);
memset(data_pos + new_size, 0, old_size - new_size);
/* TODO zero appened space in buffer! */