On Sun, Jul 14, 2019 at 05:32:12PM +0300, Jarkko Sakkinen wrote: > When the config option is not enabled the initialization is always > succesful. > > Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx> It would whole a lot simpler if the call was just flagged: #ifdef CONFIG_INTEL_SGX_DRIVER ret = sgx_drv_init(); if (ret) goto err_kthread; #endif /Jarkko