Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4647209imm; Sun, 22 Jul 2018 02:27:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdRxLrvsGkS/LOA3wHhyvRd6xsFW2MeKPICGftyUH2SQ1UL3NuNFtWAGuaehRyCD9W5Uuax X-Received: by 2002:a63:b91c:: with SMTP id z28-v6mr8154971pge.22.1532251622820; Sun, 22 Jul 2018 02:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532251622; cv=none; d=google.com; s=arc-20160816; b=QhOYY5BVo3ENfp1Lmjp9DmGPeZO0XjFRLs4drcNCu0gyjGvkxFT/KxvKTCVtcgOt8+ 0CW1Oy+GzSqHVPXAtAguulg89Q9QJCXWnCPMWcq1EgqV35I7Xyv28W0LpBCWJ2LQVrlN 2gir8LnGpf/x8wd3D5Pggw7dIunK+7jSDafPz8sU/gQBB32oX6LZgM6PPqu23/hzBCQ9 lzKpee8RbuPfpvEaDmQwQ7aAqlROqeX/Xtc7QgxPDu5++hp+Ek+spI650+n6icOyQfzH MuwkaaeJlNsWSMOSAyakoMRVZ9b8Cw+gaU7SJI4B1I6x+DE0LksWKcTAUntd8VGgFF8h pJNg== 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:arc-authentication-results; bh=r0gL4J00MQevwLe/Ot7jvjD/iC0xqjmcROYe1RrPLOo=; b=QrLbekgmJCqVYCPGwFr2xoT0sxXcie+tOaREnmGr/BO/ZhLQdgtenjhogTIQ53rdmW ok2N5zTGp8DKZGPkXbHzIo2Ekg+oyMTr4pyUmPcIBg9CgUfEJ9XqAT8U884RyKkT55Jq PgoFQH5P/oHRH7UFuy7CKQe/o6V/0Z9OR5Bi4G+MtIpFe3xw3EXi3LUKTbcSw2BZ1GXy anppo2+lQWqaJZdfizD7dI4l93KLSUnYXAOwd0CxC1MpKbhpxdxzqbsU8blj40uQvJgb wsVZ5hTDhn/jLl31BqYBMfn/O0GwBC7ppjZGB5iDTytTGV2/NaW6F4PBdSw0WJrxX30c PkkA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z72-v6si5383815pgd.646.2018.07.22.02.26.35; Sun, 22 Jul 2018 02:27:02 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728374AbeGVKVR (ORCPT + 99 others); Sun, 22 Jul 2018 06:21:17 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9663 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728201AbeGVKVR (ORCPT ); Sun, 22 Jul 2018 06:21:17 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id F0E50E2BF1EF3; Sun, 22 Jul 2018 17:25:08 +0800 (CST) Received: from linux-work.huawei.com (10.67.189.174) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.382.0; Sun, 22 Jul 2018 17:25:04 +0800 From: nixiaoming To: , CC: , , Subject: [PATCH] fs/nfsd: Delete invalid assignment statements in nfsd4_decode_exchange_id Date: Sun, 22 Jul 2018 16:50:44 +0800 Message-ID: <20180722085044.50701-1-nixiaoming@huawei.com> X-Mailer: git-send-email 2.10.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.189.174] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dummy = be32_to_cpup(p++); dummy = be32_to_cpup(p++); Assigning value to "dummy" here, but that stored value is overwritten before it can be used. delete invalid assignment statements in nfsd4_decode_exchange_id Signed-off-by: n00202754 --- fs/nfsd/nfs4xdr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index a96843c..8e78541 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -1392,8 +1392,8 @@ nfsd4_decode_exchange_id(struct nfsd4_compoundargs *argp, /* ssp_window and ssp_num_gss_handles */ READ_BUF(8); - dummy = be32_to_cpup(p++); - dummy = be32_to_cpup(p++); + be32_to_cpup(p++); + be32_to_cpup(p++); break; default: goto xdr_error; -- 2.10.1