From 7af7d37531f8d44d4bf343be2197e4952ca188f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Tue, 25 Aug 2015 00:09:17 +0200 Subject: [PATCH] base64: remove unused calculation in base64_encode Found via scan-build. --- sys/base64/base64.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/base64/base64.c b/sys/base64/base64.c index 869ca668ad..849ba8ca21 100644 --- a/sys/base64/base64.c +++ b/sys/base64/base64.c @@ -108,10 +108,6 @@ int base64_encode(unsigned char *data_in, size_t data_in_size, \ /* The last character is not finished yet */ njump++; - if (njump == 4) { - nNum = (tmpval >> (2 * njump)); - } - nNum = nLst << (8 - 2 * njump); base64_out[iterate_base64_buffer++] = getsymbol(nNum);