]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/ld: Remove superfluous redundant iself check
authorElias Naur <elias.naur@gmail.com>
Wed, 14 Aug 2013 20:28:40 +0000 (16:28 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 14 Aug 2013 20:28:40 +0000 (16:28 -0400)
        CL 12741044 added an extra iself condition to an if statement that already contained it. Remove it.

R=rsc
CC=golang-dev
https://golang.org/cl/12949043

src/cmd/ld/data.c

index a1c31128aae25ddbfe1ba64c48a51ff677ac4a38..db2ac0f460ee1ddf9d4f84c269f6f03bc0fe9c51 100644 (file)
@@ -1212,7 +1212,7 @@ dodata(void)
                diag("data or bss segment too large");
        }
        
-       if(iself && linkmode == LinkExternal && s != nil && s->type == STLSBSS && iself && HEADTYPE != Hopenbsd) {
+       if(iself && linkmode == LinkExternal && s != nil && s->type == STLSBSS && HEADTYPE != Hopenbsd) {
                sect = addsection(&segdata, ".tbss", 06);
                sect->align = PtrSize;
                sect->vaddr = 0;