Fix: cli: value stored is never read
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 6 May 2019 20:45:32 +0000 (16:45 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 7 May 2019 16:28:26 +0000 (12:28 -0400)
Found with scan-build:
  line 1434, column 4
  Value stored to 'ret' is never read

  line 1281, column 4
  Value stored to 'ret' is never read

  line 1345, column 2
  Value stored to 'ret' is never read

  line 1423, column 3
  Value stored to 'ret' is never read

  line 1396, column 3
  Value stored to 'ret' is never read

Reported-by: scan-build
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I95f06132c34bbf9c4ffbb81423e42cf1834880bd
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1266
Reviewed-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
cli/babeltrace.c

index b1901bc2a079621ab8bb6533e3aeed50fdc377c5..5578a661f973def4be5036f5f04f516aa0d643cb 100644 (file)
@@ -1368,7 +1368,7 @@ end:
                }
        }
 
-       return 0;
+       return ret;
 }
 
 static
@@ -1480,7 +1480,7 @@ end:
                }
        }
 
-       return 0;
+       return ret;
 }
 
 struct port_id {
This page took 0.029375 seconds and 4 git commands to generate.