diff options
author | Jett Rink <jettrink@chromium.org> | 2019-08-02 16:02:02 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-19 17:00:56 +0000 |
commit | 9647355905baf0d162b51d604c3973ffdc248a90 (patch) | |
tree | fa8f228f3d2b6e229b63592b04de06fc8cfb09b7 /common/usbc/usb_tc_ctvpd_sm.c | |
parent | a0ed5aebb22c4d9b83c257b4127a1df372751e14 (diff) | |
download | chrome-ec-9647355905baf0d162b51d604c3973ffdc248a90.tar.gz |
usb: remove state transitions in exit
If we transition to a new state in exit, then the
original state we are transitioning to is lost. The
new state machine common code will warn in this scenario.
BRANCH=none
BUG=none
TEST=builds
Change-Id: I571ff62dd6969bd3743cf33ae5c56dc02ae59724
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1733742
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'common/usbc/usb_tc_ctvpd_sm.c')
-rw-r--r-- | common/usbc/usb_tc_ctvpd_sm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/common/usbc/usb_tc_ctvpd_sm.c b/common/usbc/usb_tc_ctvpd_sm.c index 4097f98ce7..447db85be5 100644 --- a/common/usbc/usb_tc_ctvpd_sm.c +++ b/common/usbc/usb_tc_ctvpd_sm.c @@ -138,7 +138,6 @@ static int tc_disabled_exit(int port) } #endif CPRINTS("TCPC p%d resumed!", port); - sm_set_state(port, TC_OBJ(port), tc_unattached_snk); return 0; } |