From cdec7d2f41f2b081aeeb9c35f6c5acae9f5ef838 Mon Sep 17 00:00:00 2001 From: ASHOK-SINGH <37559719+ASHOK17198@users.noreply.github.com> Date: Wed, 17 Apr 2019 20:23:03 +0530 Subject: [PATCH] [sensor_tools] remove leftover code in hist (#102) --- software/sensor_tools/hist/hist.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/software/sensor_tools/hist/hist.c b/software/sensor_tools/hist/hist.c index a665ac09..f5b8bb86 100644 --- a/software/sensor_tools/hist/hist.c +++ b/software/sensor_tools/hist/hist.c @@ -226,14 +226,6 @@ int main(int argc, char *argv[]) (long unsigned)map_base, (long unsigned)map_size, (long unsigned)map_addr); - void *line = calloc(64*128, sizeof(uint16_t)); - if (line == (void *)-1) { - fprintf(stderr, - "error allocating memory\n%s\n", - strerror(errno)); - exit(3); - } - for (int i=0; i<4; i++) { if (buf_base[i] == -1) buf_base[i] = get_fil_reg(FIL_REG_BUF0 + 2*i);