File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
drivers/modem/simcom/sim7080 Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments