ldso: remove redundant switch case for REL_NONE
authorFangrui Song <i@maskray.me>
Sun, 8 Mar 2020 18:10:32 +0000 (11:10 -0700)
committerRich Felker <dalias@aerifal.cx>
Fri, 20 Mar 2020 16:35:38 +0000 (12:35 -0400)
as a result of commit b6a6cd703ffefa6352249fb01f4da28d85d17306,
the REL_NONE case is now redundant.

ldso/dynlink.c

index afec985a3dbe35cb9fc8c68e8e89fcdccc4880cf..6468f203cb69b1dbfb6c5731c4e3f7c650546c7e 100644 (file)
@@ -415,8 +415,6 @@ static void do_relocs(struct dso *dso, size_t *rel, size_t rel_size, size_t stri
                }
 
                switch(type) {
-               case REL_NONE:
-                       break;
                case REL_OFFSET:
                        addend -= (size_t)reloc_addr;
                case REL_SYMBOLIC: