From 9922d2600ca4c3ec4a393d70d37642d51165a316 Mon Sep 17 00:00:00 2001 From: Oleg Hahm <oleg@hobbykeller.org> Date: Wed, 22 Jul 2015 14:36:21 +0200 Subject: [PATCH] native: removed dead code num was never read, because native will exit before. --- cpu/native/periph/random.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cpu/native/periph/random.c b/cpu/native/periph/random.c index 25e597a95d..9fe1dcae10 100644 --- a/cpu/native/periph/random.c +++ b/cpu/native/periph/random.c @@ -92,7 +92,6 @@ int random_read(char *buf, unsigned int num) num = _native_rng_read_det(buf, num); break; default: - num = 0; err(EXIT_FAILURE, "random_read: _native_rng_mode is in invalid state %i\n", _native_rng_mode); break; -- GitLab