efi/earlycon: Replace open coded strnchrnul()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 8 Dec 2022 22:12:16 +0000 (00:12 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 10 Jan 2023 14:16:12 +0000 (15:16 +0100)
commitb7a1cd243839cc1459fbc83a7a62e3b57f29f497
treef1114c7efab8ecb3c46272eef5affc84bf85dd72
parent1b929c02afd37871d5afb9d498426f83432e71c2
efi/earlycon: Replace open coded strnchrnul()

strnchrnul() can be called in the early stages. Replace
open coded variant in the EFI early console driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/earlycon.c