1From fdb803402fb32fa6d020bac57a40c7efe4aabb7d Mon Sep 17 00:00:00 2001 2From: Javier Martinez Canillas <javierm@redhat.com> 3Date: Tue, 5 Mar 2019 17:23:24 +0100 4Subject: [PATCH] ucs2.h: remove unused variable 5 6The const uint16_t pointer is not used since now the two bytes of the 7UCS-2 chars are checked to know if is the termination of the string. 8 9Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> 10Signed-off-by: Peter Korsgaard <peter@korsgaard.com> 11--- 12 src/ucs2.h | 3 +-- 13 1 file changed, 1 insertion(+), 2 deletions(-) 14 15diff --git a/src/ucs2.h b/src/ucs2.h 16index edd8367..e0390c3 100644 17--- a/src/ucs2.h 18+++ b/src/ucs2.h 19@@ -26,12 +26,11 @@ static inline size_t UNUSED 20 ucs2len(const void *vs, ssize_t limit) 21 { 22 ssize_t i; 23- const uint16_t *s = vs; 24 const uint8_t *s8 = vs; 25 26 for (i = 0; 27 i < (limit >= 0 ? limit : i+1) && s8[0] != 0 && s8[1] != 0; 28- i++, s8 += 2, s++) 29+ i++, s8 += 2) 30 ; 31 return i; 32 } 33-- 342.20.1 35 36