diff options
-rw-r--r-- | common/usb_pd_protocol.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 04b3b5223b..74666fef98 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -4852,9 +4852,7 @@ static int command_pd(int argc, char **argv) else if (!strncasecmp(argv[1], "trysrc", 6)) { int enable; - if (argc < 2) { - return EC_ERROR_PARAM_COUNT; - } else if (argc >= 3) { + if (argc >= 3) { enable = strtoi(argv[2], &e, 10); if (*e) return EC_ERROR_PARAM3; |