Skip to content

Commit 3d92205

Browse files
cuiweixiegopherbot
authored andcommitted
cmd/link/internal/s390: return comparison directly
Change-Id: I171905d5cd7a121de549827ef4d5968510aa3efc Reviewed-on: https://go-review.googlesource.com/c/go/+/436705 Reviewed-by: Than McIntosh <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: hopehook <[email protected]> Run-TryBot: Cherry Mui <[email protected]> Run-TryBot: xie cui <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent 85b02de commit 3d92205

File tree

1 file changed

+1
-5
lines changed
  • src/cmd/link/internal/s390x

1 file changed

+1
-5
lines changed

src/cmd/link/internal/s390x/asm.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,7 @@ func adddynrel(target *ld.Target, ldr *loader.Loader, syms *ld.ArchSyms, s loade
210210
return true
211211
}
212212
// Handle references to ELF symbols from our own object files.
213-
if targType != sym.SDYNIMPORT {
214-
return true
215-
}
216-
217-
return false
213+
return targType != sym.SDYNIMPORT
218214
}
219215

220216
func elfreloc1(ctxt *ld.Link, out *ld.OutBuf, ldr *loader.Loader, s loader.Sym, r loader.ExtReloc, ri int, sectoff int64) bool {

0 commit comments

Comments
 (0)