modules: swconfig.c: update the error path on 3.13, and behave nicely with return