efi_loader: duplicate code in efi_dp_from_name
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 13 May 2023 08:00:55 +0000 (10:00 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 13 May 2023 09:09:51 +0000 (11:09 +0200)
commitbd646fc3deeb0c274a7fa61e3727916aadd23dc7
tree2effbdc1893619235d64fe668eb0d52ab099318b
parentd76184edc31292bd68ef1b63e7dfc3f11cd8bada
efi_loader: duplicate code in efi_dp_from_name

efi_dp_from_name() has duplicate code to replace slash by backslash.
path_to_uefi() called by efi_dp_from_file() already does this.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_device_path.c