Remove kexec error if hardboot is not defined

also the useless commented out code

Change-Id: Ib3f13aef049ededb5a008e76d1f6fd6b1c586cd3