sim: during init, fall down to next states directly
This commit is contained in:
17
src/mm-sim.c
17
src/mm-sim.c
@@ -1022,7 +1022,8 @@ interface_initialization_step (InitAsyncContext *ctx)
|
|||||||
ctx);
|
ctx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
/* Fall down to next step */
|
||||||
|
ctx->step++;
|
||||||
|
|
||||||
case INITIALIZATION_STEP_IMSI:
|
case INITIALIZATION_STEP_IMSI:
|
||||||
/* IMSI is meant to be loaded only once during the whole
|
/* IMSI is meant to be loaded only once during the whole
|
||||||
@@ -1035,7 +1036,8 @@ interface_initialization_step (InitAsyncContext *ctx)
|
|||||||
ctx);
|
ctx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
/* Fall down to next step */
|
||||||
|
ctx->step++;
|
||||||
|
|
||||||
case INITIALIZATION_STEP_OPERATOR_ID:
|
case INITIALIZATION_STEP_OPERATOR_ID:
|
||||||
/* Operator ID is meant to be loaded only once during the whole
|
/* Operator ID is meant to be loaded only once during the whole
|
||||||
@@ -1048,7 +1050,8 @@ interface_initialization_step (InitAsyncContext *ctx)
|
|||||||
ctx);
|
ctx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
/* Fall down to next step */
|
||||||
|
ctx->step++;
|
||||||
|
|
||||||
case INITIALIZATION_STEP_OPERATOR_NAME:
|
case INITIALIZATION_STEP_OPERATOR_NAME:
|
||||||
/* Operator Name is meant to be loaded only once during the whole
|
/* Operator Name is meant to be loaded only once during the whole
|
||||||
@@ -1061,7 +1064,8 @@ interface_initialization_step (InitAsyncContext *ctx)
|
|||||||
ctx);
|
ctx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
/* Fall down to next step */
|
||||||
|
ctx->step++;
|
||||||
|
|
||||||
case INITIALIZATION_STEP_LAST:
|
case INITIALIZATION_STEP_LAST:
|
||||||
/* We are done without errors! */
|
/* We are done without errors! */
|
||||||
@@ -1071,9 +1075,8 @@ interface_initialization_step (InitAsyncContext *ctx)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Go on to next step */
|
|
||||||
ctx->step++;
|
g_assert_not_reached ();
|
||||||
interface_initialization_step (ctx);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Reference in New Issue
Block a user