Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2629307imm; Sun, 5 Aug 2018 08:29:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdNjMjyVsYCk+bEQhm6IhBvm4HgBvoNxXCiFsreI5C+8mBwNVkZ7zwtIUpQOuL6zft7lZRJ X-Received: by 2002:a17:902:d70d:: with SMTP id w13-v6mr10730675ply.229.1533482943046; Sun, 05 Aug 2018 08:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533482943; cv=none; d=google.com; s=arc-20160816; b=xyhsLsVJDZfzwJSAe9LI83aDGt0UqBDSrFfyOZ0upgMTMZ3eHDfiPkNSpYM8WSXZY8 BomaRKRPSPoj+QGes1ZIlAbGfqCK0fiH3L7pfOoJE7heffdtGcNc04iKl1Es4OwKX8E0 d8XFiO0PYvUvY1jwwcJr47mIPeBGQc2Hv+6etRc1E7JZGoaIlc2F5uPKzeRyDc91pGPm g2hD1BaZ9KRRedtIyxpevcRa0ZOfVQoJWmVOvmzacx25JcYabPF1m9ECartx64/URRA2 fsRnU3iO/Z8dNTbMj0CjuKSuNVsoPWE9Moll1werzDngnwvBKDr7Fc+P7Ny0wCSHcleg h3pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=ULyzxlO3h908slYLmelhXwaQzvR4lV/XaI17I4rXxoI=; b=z8ZUB/Jes8kwcBhREQlGOUCjvlh7pGVEJE9wPto98/eORtt/L6qObUCsoZ7UhUQNBh aqxJQ+wIuZxL+/cVrKvL8xVWvgJtP9asmouyK41y9+qFaot5/ctITvKkO3FcDfnKg08T Jryie3DgxcKl3k7NzCiClK1RrO8Tv6dVus2YGMEotTV6WZRaem/+PJ8+eMi+Jf5F5kdh zFVUJqrJPvZO2P7Z2rlS5rWv2plLLTgGwEVlnjux9KGdlIision4UlzRb09mXWD4Rpru 0f5DDvr4A0SF9adOGR/i6tvsd1GCNwuBdku27PpdO0jZ3WSpSJgBzFyq2dr5MaW63IV4 2Wnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6-v6si9211257pgk.474.2018.08.05.08.28.45; Sun, 05 Aug 2018 08:29:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726402AbeHERcv (ORCPT + 99 others); Sun, 5 Aug 2018 13:32:51 -0400 Received: from smtprelay0235.hostedemail.com ([216.40.44.235]:47197 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726264AbeHERcv (ORCPT ); Sun, 5 Aug 2018 13:32:51 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 5699A52AE; Sun, 5 Aug 2018 15:27:52 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:968:973:983:988:989:1208:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3350:3622:3865:3867:3868:3871:3872:4250:4321:5007:9389:10004:10400:10848:11026:11232:11658:11914:12043:12048:12296:12438:12740:12760:12895:13069:13311:13357:13439:14659:14721:21080:21611:21627:30054:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:1:0,LFtime:31,LUA_SUMMARY:none X-HE-Tag: turn72_7ec4aad304333 X-Filterd-Recvd-Size: 1549 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf12.hostedemail.com (Postfix) with ESMTPA; Sun, 5 Aug 2018 15:27:51 +0000 (UTC) Message-ID: <5b2806ada98cfca4346e48f1943aca6da0cda4a6.camel@perches.com> Subject: Re: [PATCH 1/3] fs/btrfs/disk-io: Remove unneeded variable "err" From: Joe Perches To: zhong jiang , clm@fb.com, jbacik@fb.com, dsterba@suse.com Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 05 Aug 2018 08:27:49 -0700 In-Reply-To: <1533481371-21349-2-git-send-email-zhongjiang@huawei.com> References: <1533481371-21349-1-git-send-email-zhongjiang@huawei.com> <1533481371-21349-2-git-send-email-zhongjiang@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2018-08-05 at 23:02 +0800, zhong jiang wrote: > The err is not used after initalization, So remove it and make > the function to be void function. [] > diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c [] > @@ -4193,7 +4192,6 @@ static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans, > if (atomic_read(&delayed_refs->num_entries) == 0) { > spin_unlock(&delayed_refs->lock); > btrfs_info(fs_info, "delayed_refs has NO entry"); > - return ret; Think a little more about this please. This is not a sensible removal. > } > > while ((node = rb_first(&delayed_refs->href_root)) != NULL) {