Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2506958pxb; Tue, 9 Mar 2021 04:26:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxs/xWojGlQ/ZmQbWvpl7VQnUxEdFKmvd1MNeOx3xYS8ypvV43tXm/vFOXgyealvfZpAqWS X-Received: by 2002:a50:d753:: with SMTP id i19mr3773642edj.43.1615292803086; Tue, 09 Mar 2021 04:26:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615292803; cv=none; d=google.com; s=arc-20160816; b=jXxrleLhgMVrl2gW1GMFJ0U2EpzOeV858wdcptzvFWQxvhZNDhleyl2IbK4jZG5beS gJlH1iLgn86uDGSgIiAtxDmEYgDJ2CU0Qn4kN86onwIk+QeM/nS8sv9inh8D2kHMI+bn UYoW0t+pFt/f3PDJYOEWiwd9PsYhmz7rusch6uFIIy+OB3GkukSnhOeaRacuEbczLoz9 mehAH/ObdiaeJPEOKNAkEe4P0KFY4aXyXGi81nbGMsRJx9AQ1XgpocoU5bacByaUFX2J PkDerVqWW4g7VZ7WlU8uhVx7PW0G46m8/BNJbEkBS9h/muwoAWFPopMvhzw+MSUOkB31 5rqQ== 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; bh=RSK+9VJ36RMmzRiM7uSkiHf2Gm5HeNUvMHgDpU9gDR8=; b=Ob9Ul6QYibT4FC7tvBuuDBwCL3/wgJgWzH/yV4IWbqAFJOWTz3vEMVeZ6MHKHWbuy4 kp/zp970BPh+SK2PND9N+d7XPWAUw0kOya96AXf5ahiYLZ6zozFf1Er+vdjGSZfY2sVq MolPV4yQkdzymjbEucVFec6PlaR5O7+VYsWeIIOaM5FAXtvOz2UkpGMoAfJm82KQSTU4 6+++3HQN29+QhtjkEvKg1rE8kyF3q6pZPGaYBM7YnQnP5LxLLC6fYuxvUwKwGxAFnUNm Mqn9XAxus0R/16Nb+EbUucrKwhaBTKZje/t9K45/4C3DalFxwg9eOzLGyHbVapJBmY/w RMMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si8728297edr.131.2021.03.09.04.26.20; Tue, 09 Mar 2021 04:26:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbhCIMZS (ORCPT + 99 others); Tue, 9 Mar 2021 07:25:18 -0500 Received: from mx2.suse.de ([195.135.220.15]:51628 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbhCIMYr (ORCPT ); Tue, 9 Mar 2021 07:24:47 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 992C6AC8C; Tue, 9 Mar 2021 12:24:46 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 4E530DA81B; Tue, 9 Mar 2021 13:22:48 +0100 (CET) Date: Tue, 9 Mar 2021 13:22:48 +0100 From: David Sterba To: Yang Li Cc: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] btrfs: turn btrfs_destroy_delayed_refs() into void function Message-ID: <20210309122248.GG7604@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Yang Li , clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org References: <1615282374-29598-1-git-send-email-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1615282374-29598-1-git-send-email-yang.lee@linux.alibaba.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 09, 2021 at 05:32:54PM +0800, Yang Li wrote: > This function always return '0' and no callers use the return value. > So make it a void function. > > This eliminates the following coccicheck warning: > ./fs/btrfs/disk-io.c:4522:5-8: Unneeded variable: "ret". Return "0" on > line 4530 > > Reported-by: Abaci Robot Can you please tell your robot to ignore this warning, I'm getting tired to explain the same thing again, https://lore.kernel.org/linux-btrfs/20210302120708.GH7604@suse.cz/ this is like 5th attempt to blindly fix a tool warning without understanding the code.