powerpc/powernv: Avoid strlen() in pnv_restart()

Check only the first byte instead of scanning the entire string with
strlen().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260721155346.121975-3-thorsten.blum@linux.dev
This commit is contained in:
Thorsten Blum 2026-07-21 17:53:45 +02:00 • committed by Madhavan Srinivasan
commit 86bb4d74da