aboutsummaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-09-07 21:05:45 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2019-09-09 15:21:08 +0200
commit87c4840610e037018b9df30b1a31896b0bd284a9 (patch)
treed7e112606eb5f99afac3b277bc0c125335b79f20 /include/efi_loader.h
parentb0f1c728c82c25291895d66e591fa2a6851ba374 (diff)
downloadu-boot-87c4840610e037018b9df30b1a31896b0bd284a9.zip
u-boot-87c4840610e037018b9df30b1a31896b0bd284a9.tar.gz
u-boot-87c4840610e037018b9df30b1a31896b0bd284a9.tar.bz2
efi_loader: eliminate inline function ascii2unicode()
ascii2unicode() can only convert characters 0x00-0x7f from UTF-8 to UTF-16. Use utf8_utf16_strcpy() instead. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 00eba8a..dd24a27 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -555,22 +555,6 @@ efi_status_t efi_dp_from_name(const char *dev, const char *devnr,
(((_dp)->type == DEVICE_PATH_TYPE_##_type) && \
((_dp)->sub_type == DEVICE_PATH_SUB_TYPE_##_subtype))
-/**
- * ascii2unicode() - convert ASCII string to UTF-16 string
- *
- * A zero terminated ASCII string is converted to a zero terminated UTF-16
- * string. The output buffer must be preassigned.
- *
- * @unicode: preassigned output buffer for UTF-16 string
- * @ascii: ASCII string to be converted
- */
-static inline void ascii2unicode(u16 *unicode, const char *ascii)
-{
- while (*ascii)
- *(unicode++) = *(ascii++);
- *unicode = 0;
-}
-
static inline int guidcmp(const void *g1, const void *g2)
{
return memcmp(g1, g2, sizeof(efi_guid_t));