minor code improvements (PatchACPI)