* [PATCH] rildev: Do not create modems if no env var set
@ 2015-10-15 14:12 Alfonso Sanchez-Beato
2015-10-15 15:01 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Alfonso Sanchez-Beato @ 2015-10-15 14:12 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 560 bytes --]
Do not create rilmodem instances if the environment variable
OFONO_RIL_DEVICE is not set.
---
plugins/rildev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/rildev.c b/plugins/rildev.c
index 461324d..f4cea6f 100644
--- a/plugins/rildev.c
+++ b/plugins/rildev.c
@@ -93,7 +93,7 @@ static int detect_init(void)
ril_type = getenv("OFONO_RIL_DEVICE");
if (ril_type == NULL)
- ril_type = "ril";
+ return 0;
/* Check for multi-SIM support */
multi_sim = getenv("OFONO_RIL_NUM_SIM_SLOTS");
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rildev: Do not create modems if no env var set
2015-10-15 14:12 [PATCH] rildev: Do not create modems if no env var set Alfonso Sanchez-Beato
@ 2015-10-15 15:01 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2015-10-15 15:01 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 297 bytes --]
Hi Alfonso,
On 10/15/2015 09:12 AM, Alfonso Sanchez-Beato wrote:
> Do not create rilmodem instances if the environment variable
> OFONO_RIL_DEVICE is not set.
> ---
> plugins/rildev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-15 15:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 14:12 [PATCH] rildev: Do not create modems if no env var set Alfonso Sanchez-Beato
2015-10-15 15:01 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.