Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp635900lfv; Tue, 12 Apr 2022 00:34:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuVWAfhG05chKoo4xTyEv/ShI0AGVKXfWRa3Xg24siBPYdQg4mL5+dj2R1xQzH/WIFmg90 X-Received: by 2002:a17:906:5641:b0:6da:8691:3fcc with SMTP id v1-20020a170906564100b006da86913fccmr31747879ejr.50.1649748854011; Tue, 12 Apr 2022 00:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649748854; cv=none; d=google.com; s=arc-20160816; b=UnptnJhEVt+8sP3GNt88sT/mZzwnModdX79nT9GFKFEXKBKvz0MwuEbrNjG4Hb0nNq n7ld+NCByuYWmSLONKrCpgbVu52ibkwdNAlu/tcgCXcZumr3reOb1ZrYmutSEEkYsW9o GapRHK1BbfHFAYOUkyttOAPIycDh+vjCWInHUH7HMeMrlyb8qWiO1OCvGxWr/gktI+3S QdRmgS1HJNFuHoHVMd7CnVa1TzDVjlsqgrwtj/iApKaiHzEXTbB+VIdE9KgKHteqSOCq GY2nwOIhdtzvedD/ar2kupOkpwV8h/kWHIlFjxiTech2gZIkj3kk5feoExmb/MgPoAuE afxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=mabhyMUHoOtwjOm0+3v+wDSJt7vVsJDccsK4CpT9dlY=; b=GNEmMLIMxxKid89tKve8hOZdQ/KqZ9IbJW9oGBOKUU/huy9p6ts+S2PJFex60R7+2q IXhsirHTvqWrRmDnq+L/lo1CWUirsRU0tN4Pgy903QXJdCZoFORLAhNTxSEzDxraIeIX GLI17Y9MorzmqP7Jci2g6dl/SWhquqEKYFiw8G6OpX7uBpanJXLCO0h5ixVZ+siKhHop c0bA3EtjZxEytVcBhOaA+nITpnoKcFOpzuWKit2kssGEGLt73Bi5A1cNR7lZHT6IVn1y sE0AaJLqoOThmGEmqv5vamcSRez9ffkfVcyu5jIwWo8N432SjkfmiVwwNpcladccHXb3 7sGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=GPgjX9c0; dkim=neutral (no key) header.i=@suse.cz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dc24-20020a170906c7d800b006e88ceb9a3csi4421710ejb.274.2022.04.12.00.33.49; Tue, 12 Apr 2022 00:34:13 -0700 (PDT) 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.cz header.s=susede2_rsa header.b=GPgjX9c0; dkim=neutral (no key) header.i=@suse.cz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346916AbiDKOHE (ORCPT + 99 others); Mon, 11 Apr 2022 10:07:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346914AbiDKOHA (ORCPT ); Mon, 11 Apr 2022 10:07:00 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CA983299B; Mon, 11 Apr 2022 07:04:44 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 3A513210F4; Mon, 11 Apr 2022 14:04:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1649685883; h=from:from:reply-to: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=mabhyMUHoOtwjOm0+3v+wDSJt7vVsJDccsK4CpT9dlY=; b=GPgjX9c0ohP3PVlSqdv9BoZDTTPnECG5aQBk4El5f2Dj7k6ZfJQwnXbbE4TF+BckM6ZU15 90c41ZEHxjr3YMvpb/hOqAi4cs0FSxau6yl75maJUABAIbuee8+1tZOLTzfTSnF3/4vA5N mkNpGdDnCrGmbAJlIC0Fe3AlC8Pmiaw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1649685883; h=from:from:reply-to: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=mabhyMUHoOtwjOm0+3v+wDSJt7vVsJDccsK4CpT9dlY=; b=hen0VLae0O/WS/EOG1IkKyGEGxgQhP4nmnXMxfKyJskvGQli5tvYjLfMERAm5f4rTWh8LT CkQClfix2bdbl2BA== Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id EE6A9A3B87; Mon, 11 Apr 2022 14:04:42 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 9CDE2DA7DA; Mon, 11 Apr 2022 16:00:38 +0200 (CEST) Date: Mon, 11 Apr 2022 16:00:38 +0200 From: David Sterba To: cgel.zte@gmail.com Cc: dsterba@suse.com, clm@fb.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Lv Ruyi , Zeal Robot Subject: Re: [PATCH] btrfs: remove unnecessary conditional Message-ID: <20220411140038.GI15609@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, cgel.zte@gmail.com, dsterba@suse.com, clm@fb.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Lv Ruyi , Zeal Robot References: <20220411032252.2517399-1-lv.ruyi@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220411032252.2517399-1-lv.ruyi@zte.com.cn> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) 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, Apr 11, 2022 at 03:22:52AM +0000, cgel.zte@gmail.com wrote: > From: Lv Ruyi > > iput() has already handled null and non-null parameter, so it is no > need to use if(). > > Reported-by: Zeal Robot > Signed-off-by: Lv Ruyi Thanks, I've applied this version.