/* Assign a modem context if there is free space.  */
static int modem_context_get(struct modem_context *ctx)
/* Assign a modem context if there is free space.  */
static int modem_context_get(struct modem_context *ctx)
{
	int i;
	for (i = 0; i < ARRAY_SIZE(contexts); i++) {
		if (!contexts[i]) {
			contexts[i] = ctx;
			return 0;
		}
	}
	return -ENOMEM;
}