- * UniStrncpy_to_le: Copy length limited string with pad to little-endian
- */
-static inline __le16 *UniStrncpy_to_le(__le16 * ucs1, const wchar_t * ucs2,
- size_t n)
-{
- __le16 *anchor = ucs1;
-
- while (n-- && *ucs2) /* Copy the strings */
- *ucs1++ = cpu_to_le16(*ucs2++);
-
- n++;
- while (n--) /* Pad with nulls */
- *ucs1++ = 0;
- return anchor;
-}
-
-/*
- * UniStrncpy_from_le: Copy length limited string with pad from little-endian