proc: reduntant type conversion (#3131)

Co-authored-by: weixiecui <weixiecui@futunn.com>
This commit is contained in:
cui 2022-09-09 22:16:07 +08:00 committed by GitHub
parent b19d67ccf2
commit 9bcccf81ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -833,7 +833,7 @@ var ErrUnreadableG = errors.New("could not read G struct")
func (v *Variable) parseG() (*G, error) {
mem := v.mem
gaddr := uint64(v.Addr)
gaddr := v.Addr
_, deref := v.RealType.(*godwarf.PtrType)
if deref {