aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2019-05-10 19:17:31 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-05-13 09:14:55 +0000
commitac6bf7dc1259ae09dfbd123dc6dee1400b26c801 (patch)
tree148a9df474cb3f1441293ce91c8f260d40f7022d
parent554e55b0f07e7913afad6b374e30661df9db617a (diff)
lib/hexdump: Drop redundant isprint() implementation
Change-Id: I23e2d89274553cbc75e42f0420a1a84d4cec4340 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32739 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
-rw-r--r--src/lib/hexdump.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/hexdump.c b/src/lib/hexdump.c
index 2861d6321e..ca36ddee0e 100644
--- a/src/lib/hexdump.c
+++ b/src/lib/hexdump.c
@@ -14,11 +14,7 @@
#include <console/console.h>
#include <lib.h>
-
-static int isprint(int c)
-{
- return (c >= 32 && c <= 126);
-}
+#include <string.h>
void hexdump(const void *memory, size_t length)
{