|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/2] Remove redundant RtlZeroMemory on CacheCreateSlab
__CacheAllocate already returns zeroed memory, it is redundant to
call RtlZeroMemory after allocation.
Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
src/xenbus/cache.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/xenbus/cache.c b/src/xenbus/cache.c
index eb7020d..81cd3eb 100644
--- a/src/xenbus/cache.c
+++ b/src/xenbus/cache.c
@@ -424,8 +424,6 @@ CacheCreateSlab(
if (Slab == NULL)
goto fail2;
- RtlZeroMemory(Slab, NumberOfBytes);
-
Slab->Magic = XENBUS_CACHE_SLAB_MAGIC;
Slab->Cache = Cache;
--
2.51.2.windows.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |