From 350eded2876039e449a8bda390d03ebaa57789a4 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Tue, 13 Feb 2018 09:23:57 +0100 Subject: [PATCH] nimble/host: Remove redundant memset X-Original-Commit: b9eab544483b5be21c2b47b3fef427afe002c3a5 --- nimble/host/src/ble_hs_pvcy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/nimble/host/src/ble_hs_pvcy.c b/nimble/host/src/ble_hs_pvcy.c index eeab2a95f..e744b55b1 100644 --- a/nimble/host/src/ble_hs_pvcy.c +++ b/nimble/host/src/ble_hs_pvcy.c @@ -202,8 +202,6 @@ ble_hs_pvcy_set_our_irk(const uint8_t *irk) uint8_t new_irk[16]; int rc; - memset(new_irk, 0, sizeof(new_irk)); - if (irk != NULL) { memcpy(new_irk, irk, 16); } else {