linux-kernel-setup: break hook function out

Change-Id: If4231523953876f0df07f066d9dd89610cee78ea