summaryrefslogtreecommitdiff
path: root/common/usb_pd_protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/usb_pd_protocol.c')
-rw-r--r--common/usb_pd_protocol.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c
index e3d5503ea6..50a5b33750 100644
--- a/common/usb_pd_protocol.c
+++ b/common/usb_pd_protocol.c
@@ -2147,8 +2147,7 @@ static void pd_vdm_send_state_machine(int port)
{
int res;
uint16_t header;
- enum pd_msg_type msg_type =
- pd_msg_tx_type(port, pd[port].data_role, pd[port].flags);
+ enum pd_msg_type msg_type = pd_msg_tx_type(port);
switch (pd[port].vdm_state) {
case VDM_STATE_READY: