[v8,04/17] app/test: remove unused variable
Checks
Commit Message
The buffer tmp is set but never used. This leads to warning
since the memset could be eliminated by the compiler.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
app/test/test_cmdline_cirbuf.c | 2 --
1 file changed, 2 deletions(-)
@@ -251,11 +251,9 @@ test_cirbuf_string_add_del_reverse(void)
{
struct cirbuf cb;
char buf[CMDLINE_TEST_BUFSIZE];
- char tmp[CMDLINE_TEST_BUFSIZE];
/* initialize buffers */
memset(buf, 0, sizeof(buf));
- memset(tmp, 0, sizeof(tmp));
/*
* initialize circular buffer