[dpdk-dev,pktgen,2/6] fix screen type saving

Message ID 20170725222107.23203-3-thomas@monjalon.net (mailing list archive)
State Not Applicable, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail apply patch file failure

Commit Message

Thomas Monjalon July 25, 2017, 10:21 p.m. UTC
  Seen with clang:
error: explicitly assigning value of variable of type 'int' to itself

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 lib/cli/cli_scrn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/lib/cli/cli_scrn.c b/lib/cli/cli_scrn.c
index be7df4a..b195e92 100644
--- a/lib/cli/cli_scrn.c
+++ b/lib/cli/cli_scrn.c
@@ -160,7 +160,7 @@  scrn_create(int scrn_type, int16_t nrows, int16_t ncols, int theme)
 	scrn->nrows = nrows;
 	scrn->ncols = ncols;
 	scrn->theme = theme;
-	scrn_type   = scrn_type;
+	scrn->type  = scrn_type;
 
 	if (scrn_type == SCRN_STDIN_TYPE) {
 		if (scrn_stdin_setup()) {