Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2980522pxm; Mon, 28 Feb 2022 09:39:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/I3v5p5H5vJbNCY0SnVq6l6kuIcSuiSMUq3GK1y9im1h88qSBryVDxcZaCXxY/Yeqa1+L X-Received: by 2002:a17:902:c944:b0:151:3829:a917 with SMTP id i4-20020a170902c94400b001513829a917mr16142173pla.144.1646069966045; Mon, 28 Feb 2022 09:39:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646069966; cv=none; d=google.com; s=arc-20160816; b=rk3SVpMG2TqK2X8ULY2GOc+cVq0vaAGsRDgG+jh19R5n802JhbS22Kw8XvGf0uB2sA KnedTdPORGplc/1LZFHF+Ekt/yx/hgE7FrOQqM1wB8zkULpTBhQuW/kZ30E1G/qsnOON +cnj0U2nl477cFrPuOopWygnThvbqqJH36T8gXDN3/PCAPBEhke3bKxJ43gOegooopYM m3mhEc6KJtl/aJOtKgOKvcndd/W+a2JfL/t50ohcqID4e6aWUTdajbqL9g4AUC6/r25h pAGFYG8YsG1Dc19lVLKS+oY7MyBbIXa0LrMz6R8LQroD371I5Wrnz+rmR1oFqHnYQ4HL X91w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=wJaYb+JWizWqpLs2nbmXbz0b4Z0hIdwCg2krYTXjRlk=; b=hT72G6uCyvClAzKryTr5dq5zHkJIDPadrt0hvYud67W97K/u0dPMj3z0TiSUNZISJd A4y3U9MX+EeA309AgLIj4zgvIRBooevgify60Hnb0MemLfYUsYmtKE2eByoswS7unLjV at4b5j4/VsqgAJWl5giZWJkEIcqzOx0WJdQAEbFFugo5HAfV1RyBS1tRWjpGcAInNF66 EulB1vKwPmN9XPPWjLZOhHuEgBEpS923yB1spudO9SAlC5DbMnGHJsE9QAe5npp60igs B9iwas2Ul9aIB6XK9l4VJWVmwRxPc6En3mlWYTMEeuE+/Z+1X4LXsbzJJzMs5zlAHkA2 R8Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=wX0tSG3G; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=0osxI8By; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k18-20020a63ff12000000b00373e14b3b79si10235549pgi.74.2022.02.28.09.39.09; Mon, 28 Feb 2022 09:39:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=wX0tSG3G; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=0osxI8By; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237477AbiB1QDh (ORCPT + 99 others); Mon, 28 Feb 2022 11:03:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235353AbiB1QDf (ORCPT ); Mon, 28 Feb 2022 11:03:35 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41A2B3CFDE for ; Mon, 28 Feb 2022 08:02:56 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 017D81F3A3; Mon, 28 Feb 2022 16:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646064175; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wJaYb+JWizWqpLs2nbmXbz0b4Z0hIdwCg2krYTXjRlk=; b=wX0tSG3G7YSZtiWMHVSpB27s8jMykCuArN0nLk3O9hMIaosxk1NfX6VZd2Uij5e3lkxrAu 6lnzpZcbJClETo6vAa3/vyDtb9Ie8JNVdcc0vdwAP/PMpvrBo1m6mfOEjOPZEgNPrg58tH q++absDKmpVPh9umOucO1cRahczYWLs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646064175; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wJaYb+JWizWqpLs2nbmXbz0b4Z0hIdwCg2krYTXjRlk=; b=0osxI8ByW+9/LQdubg7oPeyw4GvsAvB7YEZp3Xsci4FPr6Y6yP3+WBjsC/7nrR64lj8HVW LcOJKnOWhY51diAQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id D65D4A3B89; Mon, 28 Feb 2022 16:02:54 +0000 (UTC) Date: Mon, 28 Feb 2022 17:02:54 +0100 Message-ID: From: Takashi Iwai To: Joe Perches Cc: Meng Tang , perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] ALSA: core: Remove redundant variable and return the last statement In-Reply-To: References: <20220228050253.1649-1-tangmeng@uniontech.com> <20220228050253.1649-2-tangmeng@uniontech.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Feb 2022 06:20:45 +0100, Joe Perches wrote: > > On Mon, 2022-02-28 at 13:02 +0800, 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 > > Hi Meng Tang. > > For the next time: it's not necessary (or even good) to add a sign-off > for another person unless they specifically authorize one. > > You wrote and are submitting these changes, I merely gave you simple > suggestions as to how you could improve them. Joe, would you like to drop your S-o-b lines from those two patches? Or shall I keep them? thanks, Takashi