Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp370038ybl; Wed, 21 Aug 2019 21:12:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzB4lKFpXVmskoWAaVPK9+S1Bl7UnN1kb8YWkK8nLKCzNAEdhaaXPGqEakZD5AspIxfAV9N X-Received: by 2002:a63:e44b:: with SMTP id i11mr31170034pgk.297.1566447176696; Wed, 21 Aug 2019 21:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566447176; cv=none; d=google.com; s=arc-20160816; b=MOIovwUwuYwYbTZfATbW1iSHcuJFefIMd4LA4EN/3Xsvmpkmk6/YBjPJw6TvSfwZkq YHlfKOOLcseR+I9aIDwzqnWAwl27VIT3eALFlkaJNDCxkwR9BjtW73+Pi7Cb2roFHxK2 h1pIbPI7IjsG+tgQpNuWLHjYa8WGT1lW/i7tTlbZCTNkqZH1fba5K9BM1u9pzrTY09/q Ge0vabHacYsjlA/2Iofl5QSM/IyuvRqUAC92f0dgNk4cC2QuDVN26IbST7FKsMaKJH+e gl/twgil3URO2RzjfDQmcigeGtjF0OMR7BmLegmea8yoCGGEbXNzaIlJmmm2HJ0y8P9X 2Dcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=ny+hwTL5HhudV9rNdxyHJqLseu28hJiqswzfyoGhFBo=; b=r4RRII9OARxJmjdghRPnQmWLu71ngDIj0Hn18XrLSEEc6ZG0oAIYExqG1FQNlrmsuq OmaQgaOjJcXO98qt8HyhUD4HHTzxPZO1Pqa+eWWEUioJL/+2EMDSHW0U71nUC6NWeyLt wGFkG4pI+8tWplU74A/8M+YGURuEGe6pRBeKGs9hcguyEGbTK2MWbnNSAaG8fDSzd+Rn me6hzUacyN+Di2vvRB3BVFK9wtg3mnCYMqs0OQpRHaGjjT51VZGWumZ1NErQj1eFUsxX gzobyKKiWOIZ+MQng/vVQ88/B+vwBY/FZGqX1cSw4ZoQGH5yyhbdvINZA6uP9laiQ7hg 8Bmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-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 i12si16064526pgs.126.2019.08.21.21.12.31; Wed, 21 Aug 2019 21:12:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725932AbfHVELN (ORCPT + 99 others); Thu, 22 Aug 2019 00:11:13 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5186 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725294AbfHVELN (ORCPT ); Thu, 22 Aug 2019 00:11:13 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DF899F01EACB5A0736F4; Thu, 22 Aug 2019 12:11:09 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Thu, 22 Aug 2019 12:11:03 +0800 From: zhengbin To: , , CC: , Subject: [PATCH] fs/nfsd/nfs4xdr.c: remove set but not used variables 'tmp' Date: Thu, 22 Aug 2019 12:17:34 +0800 Message-ID: <1566447454-16310-1-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: fs/nfsd/nfs4xdr.c: In function nfsd4_decode_copy: fs/nfsd/nfs4xdr.c:1751:15: warning: variable tmp set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot Signed-off-by: zhengbin --- fs/nfsd/nfs4xdr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 4428118..5e66600 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -1736,7 +1736,6 @@ static __be32 nfsd4_decode_copy(struct nfsd4_compoundargs *argp, struct nfsd4_copy *copy) { DECODE_HEAD; - unsigned int tmp; status = nfsd4_decode_stateid(argp, ©->cp_src_stateid); if (status) @@ -1751,7 +1750,6 @@ nfsd4_decode_copy(struct nfsd4_compoundargs *argp, struct nfsd4_copy *copy) p = xdr_decode_hyper(p, ©->cp_count); p++; /* ca_consecutive: we always do consecutive copies */ copy->cp_synchronous = be32_to_cpup(p++); - tmp = be32_to_cpup(p); /* Source server list not supported */ DECODE_TAIL; } -- 2.7.4