Skip to content

Commit 4a2f89b

Browse files
recalcinashif
authored andcommitted
drivers: tcpc: ps8xxx: Remove unreachable return
Remove unreachable return in ps8xxx_tcpc_vconn_discharge. Signed-off-by: Jianxiong Gu <[email protected]>
1 parent 7d63646 commit 4a2f89b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/usb_c/tcpc/ps8xxx.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ int ps8xxx_tcpc_vconn_discharge(const struct device *dev, bool enable)
189189
return tcpci_update_reg8(&cfg->bus, TCPC_REG_POWER_CTRL,
190190
TCPC_REG_POWER_CTRL_AUTO_DISCHARGE_DISCONNECT,
191191
(enable) ? TCPC_REG_POWER_CTRL_AUTO_DISCHARGE_DISCONNECT : 0);
192-
193-
return -EIO;
194192
}
195193

196194
int ps8xxx_tcpc_set_vconn(const struct device *dev, bool enable)

0 commit comments

Comments
 (0)