diff mbox

[perftest,17/23] perftest_parameters: remove dead code in printf

Message ID 1471541538-20270-18-git-send-email-jarod@redhat.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Jarod Wilson Aug. 18, 2016, 5:32 p.m. UTC
If we can only get into this block of printf's when tst == BW, there's not
much point in later testing to see if now tst == LAT. Remove pointless code.

CC: Gil Rockah <gilr@mellanox.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
---
 src/perftest_parameters.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/perftest_parameters.c b/src/perftest_parameters.c
index 32ebea9..b18588f 100755
--- a/src/perftest_parameters.c
+++ b/src/perftest_parameters.c
@@ -311,7 +311,7 @@  static void usage(const char *argv0, VerbType verb, TestType tst, int connection
 
 	if (tst == BW) {
 		printf("  -t, --tx-depth=<dep> ");
-		printf(" Size of tx queue (default %d)\n",tst == LAT ? DEF_TX_LAT : DEF_TX_BW);
+		printf(" Size of tx queue (default %d)\n", DEF_TX_BW);
 	}
 
 	printf("  -T, --tos=<tos value> ");