Skip to content

Commit 11710b6

Browse files
lgehrekecfriedt
authored andcommitted
drivers: modem: sim7080: removed error label in modem_setup
Removed label because the compliance checks fail. Signed-off-by: Lukas Gehreke <[email protected]>
1 parent 2659d38 commit 11710b6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/modem/simcom/sim7080/sim7080.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -649,21 +649,21 @@ static int modem_setup(void)
649649
ret = modem_boot(true);
650650
if (ret < 0) {
651651
LOG_ERR("Booting modem failed!!");
652-
goto error;
652+
return ret;
653653
}
654654

655655
ret = modem_cmd_handler_setup_cmds(&mctx.iface, &mctx.cmd_handler, setup_cmds,
656656
ARRAY_SIZE(setup_cmds), &mdata.sem_response,
657657
MDM_REGISTRATION_TIMEOUT);
658658
if (ret < 0) {
659659
LOG_ERR("Failed to send init commands!");
660-
goto error;
660+
return ret;
661661
}
662662

663663
if (strcmp(mdata.mdm_model, "SIMCOM_SIM7080") != 0) {
664664
LOG_ERR("Wrong modem model: %s", mdata.mdm_model);
665665
ret = -EINVAL;
666-
goto error;
666+
return ret;
667667
}
668668

669669
#if IS_ENABLED(CONFIG_MODEM_SIMCOM_SIM7080_BOOT_TYPE_CONSTRAINED)
@@ -674,7 +674,6 @@ static int modem_setup(void)
674674
#error No boot type selected
675675
#endif
676676

677-
error:
678677
return ret;
679678
}
680679

0 commit comments

Comments
 (0)