p1: init: fix code style and patterns

Change-Id: I288bc9ce61bfbee8e51b79531fbb96ce09d071ef