lnx kernel module compiles again, minor code cleanup