From d14bf09d4cf2e0b2d4feabbfdc1dc0860030493e Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Tue, 27 Jun 2017 12:41:07 +0200 Subject: prog: fix PtrType generation The inner return value can't be nil, arguments are always created now. --- prog/rand.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'prog/rand.go') diff --git a/prog/rand.go b/prog/rand.go index 815e17f9c..ebebc79f9 100644 --- a/prog/rand.go +++ b/prog/rand.go @@ -742,12 +742,6 @@ func (r *randGen) generateArg(s *state, typ sys.Type) (arg *Arg, calls []*Call) return unionArg(a, opt, optType), calls case *sys.PtrType: inner, calls := r.generateArg(s, a.Type) - if a.Dir() == sys.DirOut && inner == nil { - // No data, but we should have got size. - arg, calls1 := r.addr(s, a, inner.Size(), nil) - calls = append(calls, calls1...) - return arg, calls - } if a.Type.Name() == "iocb" && len(s.resources["iocbptr"]) != 0 { // It is weird, but these are actually identified by kernel by address. // So try to reuse a previously used address. -- cgit mrf-deployment