diff options
author | Willem de Bruijn <willemb@google.com> | 2021-12-11 20:30:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-13 15:37:15 +0100 |
commit | a8d13611b4a7b1b20d17bf2b9a89a3efcabde56c (patch) | |
tree | 840b297464070274817b0eaea4c9143676b1978b /tools | |
parent | net: bcmgenet: Fix NULL vs IS_ERR() checking (diff) | |
download | linux-a8d13611b4a7b1b20d17bf2b9a89a3efcabde56c.tar.xz linux-a8d13611b4a7b1b20d17bf2b9a89a3efcabde56c.zip |
selftests/net: toeplitz: fix udp option
Tiny fix. Option -u ("use udp") does not take an argument.
It can cause the next argument to silently be ignored.
Fixes: 5ebfb4cc3048 ("selftests/net: toeplitz test")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/net/toeplitz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/toeplitz.c b/tools/testing/selftests/net/toeplitz.c index 710ac956bdb3..c5489341cfb8 100644 --- a/tools/testing/selftests/net/toeplitz.c +++ b/tools/testing/selftests/net/toeplitz.c @@ -498,7 +498,7 @@ static void parse_opts(int argc, char **argv) bool have_toeplitz = false; int index, c; - while ((c = getopt_long(argc, argv, "46C:d:i:k:r:stT:u:v", long_options, &index)) != -1) { + while ((c = getopt_long(argc, argv, "46C:d:i:k:r:stT:uv", long_options, &index)) != -1) { switch (c) { case '4': cfg_family = AF_INET; |