Fix drivertest_watchdog.c:207:30: error: 'struct wdg_state_s' has no member named 'infopath'

Remove the unsupported -p option

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-09-24 16:13:49 +08:00 committed by Petro Karashchenko
parent 3e870833ab
commit 99a8c5937c
2 changed files with 1 additions and 3 deletions

View File

@ -21,6 +21,7 @@
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
****************************************************************************/ ****************************************************************************/
#include <stdarg.h> #include <stdarg.h>
#include <stddef.h> #include <stddef.h>
#include <setjmp.h> #include <setjmp.h>

View File

@ -203,9 +203,6 @@ static void parse_commandline(FAR struct wdg_state_s *wdg_state, int argc,
strlcpy(wdg_state->devpath, optarg, sizeof(wdg_state->devpath)); strlcpy(wdg_state->devpath, optarg, sizeof(wdg_state->devpath));
break; break;
case 'p':
strlcpy(wdg_state->infopath, optarg,
sizeof(wdg_state->infopath));
case 'r': case 'r':
OPTARG_TO_VALUE(converted, uint32_t, 10); OPTARG_TO_VALUE(converted, uint32_t, 10);
if (converted < WDG_DEFAULT_TESTCASE || if (converted < WDG_DEFAULT_TESTCASE ||