Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2981144pxj; Sun, 6 Jun 2021 21:56:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtu1YCXItVuBf7S4DGAknxautXjXLKKA3p0E9BofuCSYIabN6X5jDGPuvQ0JoVrrKmkuOz X-Received: by 2002:a17:906:bfc8:: with SMTP id us8mr16080642ejb.217.1623041782352; Sun, 06 Jun 2021 21:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623041782; cv=none; d=google.com; s=arc-20160816; b=v9vNnDkywtFBZh/TnHOL5cgdxa8yGlHWEuXdjYmY9SafEbzmwg6NpnRNHYrd+iWiyy 2s+OcA76lPTmsR7rCET1jF40Cra8fa9k+6LPPz0DXP73m/b7S8Po4v1o+oP/QsgIxzrJ sshFXJQwC07DhhuS+nna6UatapCSO7ts/s9lBMRRR/cYW89UluF0veThoSXDtq0p+s8K gm4FVUkx9KoXQ5J5rCK0Oq7imJec6oxHfnCBPHtcQn0qRqUPB4AIQEpQXiijkw9HmyuQ o0OjItgBVxnedtLAJUgNVLBfyZAN1QYuc8mT2YzPkP+xxcF8r373+dYJj6VEdzFkY4ip HG9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=HfSYPPrNLe7XVn8Y6pZPiOkd0sGddBO3pQ8k39e1OJo=; b=y2mNgpxaGWoRNLN8xrCIt3AGk2wT5cBvOlfbZQatv0B7hk7uT+RYrLQvpqvyRlOyPh dhcPmG7nByDryg8nEQ48zwHaZ58YoPpF9ilpqeElkPik9TXOITzCUVpoEIYG5JOtLkoz 1eGtziVKolJnt/nO05gG/5B7lbbq9jsAAivG6MmilAc5MDpato8IJzzyPwIiMFhg0yHq Gl+HK5106ahTbPtx32zLO4KIOFfVbTr0jcwPs4s4hMItqSqIRwzgUPLOi8nEDngbtFa2 QXcwbU86TzTFrOT6cxGXpDLQWNR4UO8EyvaxQfnq9vny5IEuT0vULQg3SOWmgHPJYeRA 8Kkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si7844572edi.558.2021.06.06.21.55.59; Sun, 06 Jun 2021 21:56:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229470AbhFGE4h (ORCPT + 99 others); Mon, 7 Jun 2021 00:56:37 -0400 Received: from mail-m121144.qiye.163.com ([115.236.121.144]:24746 "EHLO mail-m121144.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbhFGE4g (ORCPT ); Mon, 7 Jun 2021 00:56:36 -0400 Received: from Wanjb.localdomain (unknown [36.152.145.182]) by mail-m121144.qiye.163.com (Hmail) with ESMTPA id BAA46AC01D9; Mon, 7 Jun 2021 12:54:43 +0800 (CST) From: Wan Jiabing To: Namjae Jeon , Sergey Senozhatsky , Steve French , Hyunchul Lee , linux-cifs@vger.kernel.org, linux-cifsd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Cc: Wan Jiabing Subject: [PATCH] [-next] cifsd: remove duplicated argument Date: Mon, 7 Jun 2021 12:54:32 +0800 Message-Id: <20210607045432.19359-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQk1CGVYZTB5NSxpDTkpMHh5VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Pk06Ajo*Hz8WCQ9DDDYqChhN QxNPCxdVSlVKTUlIS09KTUNPSExDVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFJSkxKNwY+ X-HM-Tid: 0a79e4d2b1f6b039kuuubaa46ac01d9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./fs/cifsd/smb2pdu.c:1713:27-41: duplicated argument to & or | FILE_DELETE_LE is duplicated. Remove one and reorder argument to make coding style reasonable. Signed-off-by: Wan Jiabing --- fs/cifsd/smb2pdu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/cifsd/smb2pdu.c b/fs/cifsd/smb2pdu.c index 3e112fbdc2d9..9a46897d39c9 100644 --- a/fs/cifsd/smb2pdu.c +++ b/fs/cifsd/smb2pdu.c @@ -1710,10 +1710,10 @@ int smb2_tree_connect(struct ksmbd_work *work) KSMBD_TREE_CONN_FLAG_WRITABLE)) { rsp->MaximalAccess |= FILE_WRITE_DATA_LE | FILE_APPEND_DATA_LE | FILE_WRITE_EA_LE | - FILE_DELETE_CHILD_LE | FILE_DELETE_LE | - FILE_WRITE_ATTRIBUTES_LE | FILE_DELETE_LE | - FILE_READ_CONTROL_LE | FILE_WRITE_DAC_LE | - FILE_WRITE_OWNER_LE | FILE_SYNCHRONIZE_LE; + FILE_DELETE_LE | FILE_WRITE_ATTRIBUTES_LE | + FILE_DELETE_CHILD_LE | FILE_READ_CONTROL_LE | + FILE_WRITE_DAC_LE | FILE_WRITE_OWNER_LE | + FILE_SYNCHRONIZE_LE; } } -- 2.20.1