From 5cf576e2da925451f91092001299ed1f3fa7e0b8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 26 Jan 2016 09:30:51 +0100 Subject: [PATCH] Remove duplicate line --- frontend/drivers/platform_linux.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/drivers/platform_linux.c b/frontend/drivers/platform_linux.c index 5c84405e5f..b7ffbd36b8 100644 --- a/frontend/drivers/platform_linux.c +++ b/frontend/drivers/platform_linux.c @@ -95,8 +95,6 @@ static char *extract_cpuinfo_field(char* buffer, ssize_t length, const char* fie /* Look for first field occurrence, and ensures it starts the line. */ const char *p = buffer; - bufend = buffer + length; - for (;;) { p = memmem(p, bufend-p, field, fieldlen);