Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5212509ybi; Tue, 28 May 2019 09:15:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqzXqCuE3tDaUl5heI5ABZeS697kshzu5Ej70lMISSqfTR3xVfIepjgd6rRCIHgd76bOGk X-Received: by 2002:a63:4d5d:: with SMTP id n29mr25645421pgl.235.1559060106126; Tue, 28 May 2019 09:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559060106; cv=none; d=google.com; s=arc-20160816; b=CbDpqNbFXhvJNm6xrsTTxsCzMHY7Wvge+yernRG7qTSFj5BTVqZV41R9iOTQK4ftVm L70nX00qnwMAIyJv+p3uVaK1fg3EMQ5qNIYHV0LZGVnFCPI9K8YBvHxHzFQHwU7HymQo nZYjvbgnoCY/CMXvaS09shIxOMmsTJwaUxmblzbZTYUOINXWu0nwn2fSvEptD1qWlU9z HiC6vIZPWleYbn5O46FnAvhTY0fxyLvguyVjSUPbT2Rd/69/LpRUw0tn6VqBBrzk3fKB gEp040MB0BEdgUTUAYrkxl7eWTDubbY2KjqW1OLburcVC0Hk7iqh1Dqm7V28rZswlpEW xNkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization; bh=V37cw6krDXtkiXGY0YLkIRD6Z7/TvcggZnZGy419dC4=; b=gYZWBKrWrr3kTXl+lMprExF0KJGTyoY4qA/lr7WWO68YLVdcNkv2/SMxyhwuqI/YmJ /EnuHSYTpRqtXZbuUL/EVGs1oCDSWSa30GTS6VAe+++uj855We6RhifH42AG8WW2YUUq q8yAF1fFFh+gBNt4kzpXDLqbqdO1jIVQqBqpVSN0nNcFz1er5BHKaHsZRC6i7TAehXM2 CffKzvaMQhtqhUGTERNo2tF9q0qdevvC1ZQPOAS5AYq20sQcDHCLR3fmEuHcEB65uspl 1/n6i3pHMkiBA6/4HmxxFxi96EV+MKCfhwJmz7VVQqORi56Q4GLC5doghxV3I0kEJn36 kvDg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e96si19781292plb.123.2019.05.28.09.14.51; Tue, 28 May 2019 09:15:06 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727281AbfE1QMA (ORCPT + 99 others); Tue, 28 May 2019 12:12:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34318 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726515AbfE1QMA (ORCPT ); Tue, 28 May 2019 12:12:00 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 30A6F3D95D; Tue, 28 May 2019 16:12:00 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-173.rdu2.redhat.com [10.10.120.173]) by smtp.corp.redhat.com (Postfix) with ESMTP id 270FF2F28D; Tue, 28 May 2019 16:11:58 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <20190527165413.GA26714@embeddedor> To: Marc Dionne Cc: dhowells@redhat.com, "Gustavo A. R. Silva" , linux-afs@lists.infradead.org, Linux Kernel Mailing List Subject: Re: [PATCH] afs: Fix logically dead code in afs_update_cell MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8580.1559059917.1@warthog.procyon.org.uk> Date: Tue, 28 May 2019 17:11:57 +0100 Message-ID: <8581.1559059917@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 28 May 2019 16:12:00 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Marc Dionne wrote: > > diff --git a/fs/afs/cell.c b/fs/afs/cell.c > > index 9c3b07ba2222..980de60bf060 100644 > > --- a/fs/afs/cell.c > > +++ b/fs/afs/cell.c > > @@ -387,7 +387,6 @@ static int afs_update_cell(struct afs_cell *cell) > > if (ret == -ENOMEM) > > goto out_wake; > > > > - ret = -ENOMEM; > > vllist = afs_alloc_vlserver_list(0); > > if (!vllist) > > goto out_wake; > > Looks like the intention here was to return -ENOMEM when > afs_alloc_vlserver_list fails, which would mean that the fix should > move the assignment within if (!vllist), rather than just removing it. > Although it might be fine to just return the error that came from > afs_dns_query instead, as you do in this patch. I think I'd rather return the original error as this patch effects. I'm having a ponder on it. David