Fix for Issue #494: check and handle return value of openair0_device_load() (develop_integration_w08 branch)
lte-softmodem crashes when the SDR board is not connected, since functions to configure the non-existing board are called.
targets/RT/USER/lte-ru.c b/targets/RT/USER/lte-ru.c, init_RU_proc() tried to load the device (e.g. the USRP board) by calling openair0_device_load(&ru->rfdevice,&ru->openair0_cfg). openair0_device_load() returns -1 in case of error (like "No USRP Device found"). But the return value is not checked. So, lte-softmodem just continues and segfaults later.
This merge request fixes the issue.
Edited by Thomas Dreibholz