Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

greybus: loopback_test: Fix -z argument bug

The -z argument was missing the break statement needed in the switch
block and was not in the getopt list.

Signed-off-by: Ryan Lim <limryan@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>

authored by

Ryan Lim and committed by
Greg Kroah-Hartman
bf32654a 2861e207

+2 -1
+2 -1
drivers/staging/greybus/tools/loopback_test.c
··· 901 901 memset(&t, 0, sizeof(t)); 902 902 903 903 while ((o = getopt(argc, argv, 904 - "t:s:i:S:D:m:v::d::r::p::a::l::x::o:c:w:O:")) != -1) { 904 + "t:s:i:S:D:m:v::d::r::p::a::l::x::o:O:c:w:z::")) != -1) { 905 905 switch (o) { 906 906 case 't': 907 907 snprintf(t.test_name, MAX_STR_LEN, "%s", optarg); ··· 956 956 break; 957 957 case 'z': 958 958 t.file_output = 1; 959 + break; 959 960 default: 960 961 usage(); 961 962 return -EINVAL;