external/efivar
Revision | fdb803402fb32fa6d020bac57a40c7efe4aabb7d (tree) |
---|---|
Zeit | 2019-03-06 03:14:47 |
Autor | Javier Martinez Canillas <javierm@redh...> |
Commiter | Peter Jones |
ucs2.h: remove unused variable
The const uint16_t pointer is not used since now the two bytes of the
UCS-2 chars are checked to know if is the termination of the string.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
@@ -26,12 +26,11 @@ static inline size_t UNUSED | ||
26 | 26 | ucs2len(const void *vs, ssize_t limit) |
27 | 27 | { |
28 | 28 | ssize_t i; |
29 | - const uint16_t *s = vs; | |
30 | 29 | const uint8_t *s8 = vs; |
31 | 30 | |
32 | 31 | for (i = 0; |
33 | 32 | i < (limit >= 0 ? limit : i+1) && s8[0] != 0 && s8[1] != 0; |
34 | - i++, s8 += 2, s++) | |
33 | + i++, s8 += 2) | |
35 | 34 | ; |
36 | 35 | return i; |
37 | 36 | } |