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