From 95586bfc1666985c270c3b4dcc827b0fd68d2bfa Mon Sep 17 00:00:00 2001 From: mantuliu <240951888@qq.com> Date: Mon, 17 Oct 2022 20:47:41 +0800 Subject: [PATCH] return derectly --- src/cmd/asm/internal/asm/parse.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cmd/asm/internal/asm/parse.go b/src/cmd/asm/internal/asm/parse.go index 037084fb8c..e26c945a8a 100644 --- a/src/cmd/asm/internal/asm/parse.go +++ b/src/cmd/asm/internal/asm/parse.go @@ -567,10 +567,7 @@ func (p *Parser) atRegisterExtension() bool { return false } // R1.xxx - if p.peek() == '.' { - return true - } - return false + return p.peek() == '.' } // registerReference parses a register given either the name, R10, or a parenthesized form, SPR(10).