From patchwork Mon Aug 8 09:13:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitoj Kaur Chawla X-Patchwork-Id: 9267241 X-Patchwork-Delegate: Trond.Myklebust@netapp.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A454D60754 for ; Mon, 8 Aug 2016 09:14:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92B8526242 for ; Mon, 8 Aug 2016 09:14:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8277C27D5D; Mon, 8 Aug 2016 09:14:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2156E26242 for ; Mon, 8 Aug 2016 09:14:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752126AbcHHJNy (ORCPT ); Mon, 8 Aug 2016 05:13:54 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34077 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751985AbcHHJNx (ORCPT ); Mon, 8 Aug 2016 05:13:53 -0400 Received: by mail-pf0-f195.google.com with SMTP id g202so24741498pfb.1; Mon, 08 Aug 2016 02:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=nK9f0sYGF92i9NQ+d49bMG4atPmQeHB1lNXD+BFzucU=; b=RgvnqWJum579beHYyZLIpvNWeZ6oseIYF0oUzwMOAbqh+vMRh9/TuKwsv+RIaBgHfM C1FJyvbgNo6gmvugUsmclnpE2wCaTmd2+vkNOWNvLHFuVGd9vk7xso9nkml5HXIOOkdl 8qro9yTS1gCsU+4g8Ba4DNBG1Zkq5Kkxoh9QEhkV4SAaE4rRsPsES8QRS+OlxqBro/q2 AIk/cfLRj4TpkEww3bUj4KqVUaAc6QIDGiNnzKCFMDZcjATx7Q1sAxLAEkcg6wxv5uvF eO08mK/ngrBTUas6dgI/A4nEjvMGg2r7/LIY3WGj84RSN+yoRbR2R0tYYeDjv/N81JGm tGGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=nK9f0sYGF92i9NQ+d49bMG4atPmQeHB1lNXD+BFzucU=; b=aS3YLShHIk8Y+VGV6O3T7bH40hxt+PDNXVKhVUsBg2iDBBKl7qMf6TflcevRQLlS+I Lhq/yIJGr0tsxN6KqUGj1lS0SMyU9tWF8g+LiGKVSMEcJtE1Y+PprNxUKSNQaDkryNx0 XHEAOG5unxSdIFiUq+iwsdpilKTD2EuxWYW3mnmKGaTctvH5Dwqe1/J7eFkCB8nVhyYJ SfxoidTJijAFiFYAC+8oCZBe0T+x+Ma9iVOuYE18q+fbLcnmNWvdV/BTzSn7DCBsPMX4 6i5EDgn5CaGkROknWUrDnRUdxw1PV6Q9VUDIVn/VzQAZiSGx19GJpv2JoS4Xvz6zynLt gPHA== X-Gm-Message-State: AEkooushZJAv0iDNvzLin6XTiLg6vjjc1BQl6M1SdY/L9F3tbvUyz4cbGbPosbKsqE8p7Q== X-Received: by 10.98.96.193 with SMTP id u184mr131475476pfb.85.1470647632802; Mon, 08 Aug 2016 02:13:52 -0700 (PDT) Received: from localhost ([182.69.5.67]) by smtp.gmail.com with ESMTPSA id e72sm46220900pfb.49.2016.08.08.02.13.51 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 08 Aug 2016 02:13:52 -0700 (PDT) Date: Mon, 8 Aug 2016 14:43:49 +0530 From: Amitoj Kaur Chawla To: bfields@fieldses.org, jlayton@poochiereds.net, trond.myklebust@primarydata.com, anna.schumaker@netapp.com, davem@davemloft.net, linux-nfs@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: julia.lawall@lip6.fr Subject: [PATCH] sunrpc: Remove unnecessary variable Message-ID: <20160808091349.GA20849@amitoj-Inspiron-3542> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The variable `err` is not used anywhere and just returns the predefined value `0` at the end of the function. Hence, remove the variable and return 0 explicitly. Signed-off-by: Amitoj Kaur Chawla --- net/sunrpc/clnt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index b7f2104..0a775fa 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -184,7 +184,6 @@ static int __rpc_clnt_handle_event(struct rpc_clnt *clnt, unsigned long event, struct super_block *sb) { struct dentry *dentry; - int err = 0; switch (event) { case RPC_PIPEFS_MOUNT: @@ -201,7 +200,7 @@ static int __rpc_clnt_handle_event(struct rpc_clnt *clnt, unsigned long event, printk(KERN_ERR "%s: unknown event: %ld\n", __func__, event); return -ENOTSUPP; } - return err; + return 0; } static int __rpc_pipefs_event(struct rpc_clnt *clnt, unsigned long event,