From 6f9dedbe7f67ce27715a3636f0791f522f1bc0af Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 16 Nov 2016 14:04:50 +1030 Subject: [PATCH] sphinx: remove redundant initialization Signed-off-by: Rusty Russell --- daemon/sphinx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/sphinx.c b/daemon/sphinx.c index f31405a11..701a51ff0 100644 --- a/daemon/sphinx.c +++ b/daemon/sphinx.c @@ -128,7 +128,7 @@ static void serialize_hoppayload(u8 *dst, struct hoppayload *hp) static void xorbytes(uint8_t *d, const uint8_t *a, const uint8_t *b, size_t len) { - size_t i = 0; + size_t i; for (i = 0; i < len; i++) d[i] = a[i] ^ b[i];