swconfig: fix un-initialized return value