Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1812555imm; Thu, 23 Aug 2018 09:08:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwzPFZCrNCPcYHljck4xsTXbR6ShiaFIiIePt/C0kPEgIXMSuSIiRRk5n7onQgCJhfv6fvI X-Received: by 2002:a65:60cf:: with SMTP id r15-v6mr56366436pgv.41.1535040500941; Thu, 23 Aug 2018 09:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535040500; cv=none; d=google.com; s=arc-20160816; b=HKaUs70WvKI9DTg4Xs5kUfp+6GTleYmnVRn0qj4Ual5VK6rxKdyqkSEiU39K5ym1uW +htMYSsL6h9tD0Uxuaoil76nKzh/F30qIPPlJBzM7AV/+eUK8MxrzZYHFRLin5iKbbhv We9np8rrqEZNoG5Myt5fXZlwB1SJXcYLqxpfmMMEQ7QsFWy2YltVGHPkZCWUrLta1MLw EluWXV66KIGkuWx871aECX9uY1RBUHKCegWNZtJA+xQK5AdwktxngTv8yr16sNxIqK5F /Hsaz1fUiLmjsjKn2E+63OFAp2UYnmIApoStWBF/VcHrVq+GsXjHY9VTUugSQUCiGc8N A6qQ== 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:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=XlJEj42KrUyGPchHDOTMg7xyST9hcpr7Ghv2shVlbl0=; b=WJBizjQUvV+UMhYqPLElSlMItrKHtZcR4aTtY6gdjO1jfTTRiEflyCr3xWRvx8GWIb 0SP/WrejzEagtkBlTXVz/r6cQ1hNo6E3M8FhgByVp7+GHWNpVWaOHiVusers0KOSOl0h wM+R0Avwi7dkfBtj5yV0GzX1HS0L1St1ru9ZVqgDKFf6aRqa/6VhQh1gK+/HDV8z3m7G 8yd2klaSlsi1hOjGKGF6ZNyao6z+qPs19T9/2nBAczIGDMAVNbGOxR7A7CoNJaXbshZH o5QBBCrhSqzSe2f5p9haehAbUFZ8mi3r7eytU/852FLUie3YzNj7wyqRyeo3rk6/RHaJ n91w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U3JQs8iz; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e125-v6si5020318pfg.115.2018.08.23.09.08.05; Thu, 23 Aug 2018 09:08:20 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U3JQs8iz; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730711AbeHWO0Z (ORCPT + 99 others); Thu, 23 Aug 2018 10:26:25 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:44074 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726556AbeHWO0Z (ORCPT ); Thu, 23 Aug 2018 10:26:25 -0400 Received: by mail-pl0-f66.google.com with SMTP id ba4-v6so2236818plb.11 for ; Thu, 23 Aug 2018 03:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=XlJEj42KrUyGPchHDOTMg7xyST9hcpr7Ghv2shVlbl0=; b=U3JQs8izoFjujv63SO69C1Xuh/D8S0qnM0mLcl+w5CgQH9rn8Sq27C8g2vyyCEj8IH iSU+Ho3uvuNKsfusGx1EOYWw7ndez5o3SkH+3wpXaRdWbSr3aG21WR/JfOycer3l87iY qsTHG+l8tOeYC+Gc5ST/ajcAf+ZGkt6iijZQDobUBVQ+aFWFwLwd0GhlIIzmT79WI9lo A74byKr7x2PPmW/PHVYR6TbDHqfzFR3axjksPbiV/OwbbuMgF87XxI60y3kMvPwSW/Iv YhZqh+xTOCin+JbudQ+ptaraeXSJBwCOpXH8rnbSn905zgk7/iTYoL2I6Ne0k8tWS2ax KUXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=XlJEj42KrUyGPchHDOTMg7xyST9hcpr7Ghv2shVlbl0=; b=djuT7FLwstLnSl7OdHdf8IRmPCI8hp4gqYlbbKmbsUB9AFbB/KkkDC5LF7jqKNzWHo d/6dZWLR/NuOfnM0fQxhjci2Of3xNZ6wiQSix4WZitw03Vfa3kX9nTJOU/x7WB6iwkV1 ltJI3BQOvXo23AnOmO7XR1SmMimHz19krxXcFY5Od5QgOnxntT59L9hj/d3zkqRQODRm 8uttaFfKBpD8gBv3KUDeouRI/hmrzgb/TkRwmvC3DQ1GnXJgChNeb0KvLXqPonF7KQa/ BZfWoUCZ7IYZTbX1t2WC9zc8LSixaEHGd3lUk5MBr3ex8I9/juEcdGZctvr+1NYCVr0w kdPw== X-Gm-Message-State: AOUpUlEBc7tTcr+P0N3FV+9g5uylMTdlXSPhEzNUflVUaBP+bKq8S+OI Q5d0cEkGL/EA9CkcQOknwoU= X-Received: by 2002:a17:902:261:: with SMTP id 88-v6mr58132302plc.331.1535021835959; Thu, 23 Aug 2018 03:57:15 -0700 (PDT) Received: from localhost.localdomain ([104.192.108.9]) by smtp.gmail.com with ESMTPSA id f13-v6sm4384048pgs.92.2018.08.23.03.57.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Aug 2018 03:57:15 -0700 (PDT) From: Weikang Shi To: dhowells@redhat.com Cc: linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org, swkhack@qq.com, Weikang Shi Subject: [PATCH] fs: Eliminate redundant assignments Date: Thu, 23 Aug 2018 03:57:08 -0700 Message-Id: <1535021828-130439-1-git-send-email-swkhack@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org after the assignments statement ,all return statement do not use ret variable,so delete the assignments. Signed-off-by: Weikang Shi --- fs/afs/dir.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/afs/dir.c b/fs/afs/dir.c index 855bf2b..5a3770a 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c @@ -541,7 +541,6 @@ static int afs_do_lookup_one(struct inode *dir, struct dentry *dentry, return ret; } - ret = -ENOENT; if (!cookie.found) { _leave(" = -ENOENT [not found]"); return -ENOENT; -- 2.7.4