From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43771C433F5 for ; Tue, 15 Mar 2022 22:00:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349912AbiCOWCD (ORCPT ); Tue, 15 Mar 2022 18:02:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234246AbiCOWCB (ORCPT ); Tue, 15 Mar 2022 18:02:01 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [142.44.231.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C88F15C35C for ; Tue, 15 Mar 2022 15:00:48 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUFDh-00Br3M-OO; Tue, 15 Mar 2022 22:00:45 +0000 Date: Tue, 15 Mar 2022 22:00:45 +0000 From: Al Viro To: Lukas Bulwahn Cc: Benjamin LaHaise , linux-aio@kvack.org, linux-fsdevel@vger.kernel.org, Linus Torvalds , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] aio: drop needless assignment in aio_read() Message-ID: References: <20220314154605.11498-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220314154605.11498-1-lukas.bulwahn@gmail.com> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 14, 2022 at 04:46:05PM +0100, Lukas Bulwahn wrote: > Commit 84c4e1f89fef ("aio: simplify - and fix - fget/fput for io_submit()") > refactored aio_read() and some error cases into early return, which made > some intermediate assignment of the return variable needless. > > Drop this needless assignment in aio_read(). > > No functional change. No change in resulting object code. > > Signed-off-by: Lukas Bulwahn > --- > I cc'ed Linus as he is the author of the referred commit, but I expect > that this clean-up just goes the usual way to Al Viro and then in some > git pull to Linus. Applied...