Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C0170C433F5 for ; Mon, 28 Feb 2022 05:14:09 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 107791704; Mon, 28 Feb 2022 06:13:18 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 107791704 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1646025248; bh=wD1edJGKbLYLdFJA8YOZVTIh4R8NAnjn7evAZrw7roo=; h=Date:Subject:To:References:From:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=gSn59uHcP5pgVKvU9VLE8NNC76QBoeQao2jWoJ7ij78GD41Ytd0ugtw3GTEMM066C D0l/XHYpxU4oCON1KzP3m+sHDojpM53oGl2kPBE9z8Sy6Ot+7yEnLntAyxN9MYXvQn XdFTiOwpWKDzvce0Z0Gm2SWXwHjZs1a7RRJxBvaw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A59F1F80128; Mon, 28 Feb 2022 06:13:17 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 18BACF8013C; Mon, 28 Feb 2022 06:13:16 +0100 (CET) Received: from smtpproxy21.qq.com (smtpbg702.qq.com [203.205.195.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 73DEAF80054 for ; Mon, 28 Feb 2022 06:13:06 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 73DEAF80054 X-QQ-mid: bizesmtp75t1646025180tolhff6f Received: from [10.4.23.188] (unknown [58.240.82.166]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 28 Feb 2022 13:12:59 +0800 (CST) X-QQ-SSF: 01400000002000C0F000B00A0000000 X-QQ-FEAT: FXvDfBZI5O6ME0Y4Us0w7aoT9iOXbHaKWmIC2S5WEOuI9hg6EYPFk7+8CmLGj mlcj5c9eeqtttDZKgS1v7YCn9GSYTfL79DxKekWIzirnq27kfSXMteJg4TxxuIGZkYrzzu+ JK9Mjo2EmYrEaUMWnfew5wsKccsurYjpXZwNtusuYLo2JQPIQcWhwKZKSkfkVpxe8eIa0cU N66nmOIhRGuqGM+ThjeqjSb5Bd7H6ZkTPVATfWzcUPxYYc0M9YfuVLWxA1DD7jSUu7mfLu6 N3LH9RLoW4AUlSc52cIUFpekX/Gj5d9qfqlMnldmLjdyuN+LB6LDRAXAY5aR+/Pq5pDuDq8 IpL0F2Yl5MWq6GH4Fu+DG37KoR/74i0CfWGcTNzL0Nl93Qhywg= X-QQ-GoodBg: 2 Message-ID: <56927259-87b1-cbeb-2f85-dd3a5dd67c14@uniontech.com>+8EA17305E171470B Date: Mon, 28 Feb 2022 13:12:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [PATCH v3 2/2] ALSA: core: Remove redundant variable and return the last statement To: perex@perex.cz, tiwai@suse.com References: <20220228050003.32509-1-tangmeng@uniontech.com> <20220228050003.32509-2-tangmeng@uniontech.com> From: tangmeng In-Reply-To: <20220228050003.32509-2-tangmeng@uniontech.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybgforeign:qybgforeign2 X-QQ-Bgrelay: 1 Cc: JOE Perches , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 2022/2/28 13:00, Meng Tang wrote: > Return the result from file->f_op->open() directly instead of > taking this in another redundant variable. Make the typical > return the last statement, return early and reduce the indentation > too. > > Signed-off-by: Meng Tang > Signed-off-by: JOE Perches There is a problem with the Joe Perches signature, I have re-submit it in the V4 patch. I am very sorry for the signature problem.