[PATCH 6.6 362/393] kconfig: deduplicate code in conf_read_simple()