Skip to content

Commit 1c9be80

Browse files
committed
usbc: fix shadowed declaration build error
Fixes: /__w/zephyr/zephyr/subsys/usb/usb_c/usbc_tc_src_states.c:260:21: error: declaration of 'ret' shadows a previous local [-Werror=shadow] Signed-off-by: Fabio Baltieri <[email protected]>
1 parent e2dccab commit 1c9be80

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

subsys/usb/usb_c/usbc_tc_src_states.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,6 @@ void tc_attached_src_entry(void *obj)
257257

258258
/* Enable the VBUS sourcing by the PPC */
259259
if (data->ppc != NULL) {
260-
int ret;
261-
262260
ret = ppc_set_src_ctrl(data->ppc, true);
263261
if (ret < 0 && ret != -ENOSYS) {
264262
LOG_ERR("Couldn't disable PPC source");
@@ -317,8 +315,6 @@ void tc_attached_src_exit(void *obj)
317315

318316
/* Disable the VBUS sourcing by the PPC */
319317
if (data->ppc != NULL) {
320-
int ret;
321-
322318
ret = ppc_set_src_ctrl(data->ppc, false);
323319
if (ret < 0 && ret != -ENOSYS) {
324320
LOG_ERR("Couldn't disable PPC source");

0 commit comments

Comments
 (0)