LL40LS: code style and warning fixes