Commit 254caaf9 authored by Dave Cheney's avatar Dave Cheney

cmd/8l, cmd/6l: avoid zeroing zeroed fields

mal() returns zeroed memory, so zeroing these fields is redundant.

R=golang-dev, bradfitz, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/7096049
parent 2bddbf5e
......@@ -485,8 +485,6 @@ loop:
p->line = Bget4(f);
p->back = 2;
p->mode = mode;
p->ft = 0;
p->tt = 0;
zaddr(pn, f, &p->from, h);
fromgotype = adrgotype;
zaddr(pn, f, &p->to, h);
......
......@@ -504,8 +504,6 @@ loop:
p->as = o;
p->line = Bget4(f);
p->back = 2;
p->ft = 0;
p->tt = 0;
zaddr(pn, f, &p->from, h);
fromgotype = adrgotype;
zaddr(pn, f, &p->to, h);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment