From patchwork Thu Oct 18 14:44:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 1611461 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 6BC56DFB34 for ; Thu, 18 Oct 2012 14:44:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756542Ab2JROoX (ORCPT ); Thu, 18 Oct 2012 10:44:23 -0400 Received: from mail-qa0-f53.google.com ([209.85.216.53]:52822 "EHLO mail-qa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756361Ab2JROoW (ORCPT ); Thu, 18 Oct 2012 10:44:22 -0400 Received: by mail-qa0-f53.google.com with SMTP id s11so1315577qaa.19 for ; Thu, 18 Oct 2012 07:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=i0sVLxn2cvpOBuYQDbH6ISFC7CPxghylIOlR73DfsOk=; b=rvMNCZrFx3trRtzh+KBmJiRK+eD6hg83COvXbT/AhKz6fTgpkcdrql+P1i3NVaVSqW Duu2J1DWActChLX5TSWE8EoqwkJhUm3iB7EqNp276s5Pp/v1YCQS1Hd7oWDcuSNZoLXH 9hMSbib6wkeRRM/U2mj1MujKDNzzvFp0b6zpZJvmPS8Mayxuo++kja0ICVMVQdFL2nAV /iOqHGVRPTT4W/kPZTs20/yFztd84R4FkZwZaixFE8c+rG7Wj9J9OQTn+qAKrW1E4uHd H5gnqtfIQR/JbFZI3BkDCNvITEYTvVcXsTzZ05+xnRDY9y0H+MJmTBX/JkHsWSXBlImE DUFA== MIME-Version: 1.0 Received: by 10.224.17.70 with SMTP id r6mr3864883qaa.8.1350571461321; Thu, 18 Oct 2012 07:44:21 -0700 (PDT) Received: by 10.229.134.205 with HTTP; Thu, 18 Oct 2012 07:44:21 -0700 (PDT) Date: Thu, 18 Oct 2012 22:44:21 +0800 Message-ID: Subject: [PATCH] nfsd4: remove unused variable in nfsd4_delegreturn() From: Wei Yongjun To: bfields@fieldses.org Cc: yongjun_wei@trendmicro.com.cn, linux-nfs@vger.kernel.org Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Wei Yongjun The variable inode is initialized but never used otherwise, so remove the unused variable. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun --- fs/nfsd/nfs4state.c | 2 -- 1 file changed, 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index d0237f8..620ff81 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -3807,12 +3807,10 @@ nfsd4_delegreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfs4_delegation *dp; stateid_t *stateid = &dr->dr_stateid; struct nfs4_stid *s; - struct inode *inode; __be32 status; if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) return status; - inode = cstate->current_fh.fh_dentry->d_inode; nfs4_lock_state(); status = nfsd4_lookup_stateid(stateid, NFS4_DELEG_STID, &s, cstate->minorversion);