Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2102368ybf; Mon, 2 Mar 2020 01:58:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxtCKJMWyC8FIwBxGP+tVZvg8Scf4Xw8r2V1BldxhVJRHl77OVYWIUUfHNFdl2EUyLhM+iA X-Received: by 2002:aca:2803:: with SMTP id 3mr10647051oix.162.1583143091173; Mon, 02 Mar 2020 01:58:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583143091; cv=none; d=google.com; s=arc-20160816; b=PTHrPkISfp6og6TvtX5JMjN/CKhH92bXRbd3wyWrzR50RLpuTxRS1Z+SuAMuL3v17K iexGaiA7ETqBB2yHTRYJEz8im8UZ2CFSdXsIZrCo75r36HXps8Xu/YplkRBW45rSuV2L wGUZv6Ei0GOp7cXBLTRWr5m7kUkNXtom9N+VG9zWJdoR2UtYT2fwv07hsnMnJjwgtQOr 3/F5etaDXtVqpHWQLGSjitmqf0kMeVhSHotmqxR8Vn9M+x6m7Zi/8gG0EYuLmTAnKMMC A7qh7dgjevQdQmmGvzAmmeUU9TDGujbIsvEk7Wv3o1/QtrvVyNBfhIgjpkuDXLxzsvAH PQ4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=MLb6b7q/PdNc4POny7fgafxKap+PONDqn2fop9to9pw=; b=SwnkpptoRxJtCoAyo7AQ2IryPCysHD1FQCos5Nir1k9IRVs4GyoyQtfGQQ0LI3wuUS LzgeOqFsnR2ryRSrUE3LK6v/LUxXeoGrMAkZDJqXr6JFJ7ayKdWL03j5Qok0D+YHvXRL r6oAEv1a9LMn+e+eia66sOZyQW8uFyjIJ1nEu8LDOqv+Rt6NoMB+XCXW2/jJbRCNTkYM bqC5tuAQZCT3u7WjS3ov2gWiSa7xDTxRJe4e5GJaVtE+sJWYgXOOfw1d0wYnp+rU7m+h JLduQ8hPUf4Q/MNqDqrO4i7cguLhjM6oVTMoh2Gyi6YrfgOGUqZhfP4sFrfQqE5K9ZVH Qikg== 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 z184si5486904oia.217.2020.03.02.01.57.59; Mon, 02 Mar 2020 01:58:11 -0800 (PST) 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 S1727612AbgCBJ5X (ORCPT + 99 others); Mon, 2 Mar 2020 04:57:23 -0500 Received: from mx06.melco.co.jp ([192.218.140.146]:33327 "EHLO mx06.melco.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727060AbgCBJ5W (ORCPT ); Mon, 2 Mar 2020 04:57:22 -0500 Received: from mr06.melco.co.jp (mr06 [133.141.98.164]) by mx06.melco.co.jp (Postfix) with ESMTP id 55A923A3F52; Mon, 2 Mar 2020 18:57:19 +0900 (JST) Received: from mr06.melco.co.jp (unknown [127.0.0.1]) by mr06.imss (Postfix) with ESMTP id 48WFtR1lThzRk8J; Mon, 2 Mar 2020 18:57:19 +0900 (JST) Received: from mf04_second.melco.co.jp (unknown [192.168.20.184]) by mr06.melco.co.jp (Postfix) with ESMTP id 48WFtR1RmzzRjyb; Mon, 2 Mar 2020 18:57:19 +0900 (JST) Received: from mf04.melco.co.jp (unknown [133.141.98.184]) by mf04_second.melco.co.jp (Postfix) with ESMTP id 48WFtR1hPjzRkCp; Mon, 2 Mar 2020 18:57:19 +0900 (JST) Received: from tux532.tad.melco.co.jp (unknown [133.141.243.226]) by mf04.melco.co.jp (Postfix) with ESMTP id 48WFtR1DyWzRkBl; Mon, 2 Mar 2020 18:57:19 +0900 (JST) Received: from tux532.tad.melco.co.jp by tux532.tad.melco.co.jp (unknown) with ESMTP id 0229vJZN027658; Mon, 2 Mar 2020 18:57:19 +0900 Received: from tux390.tad.melco.co.jp (tux390.tad.melco.co.jp [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id E655C17E075; Mon, 2 Mar 2020 18:57:18 +0900 (JST) Received: from tux554.tad.melco.co.jp (mailgw1.tad.melco.co.jp [10.168.7.223]) by tux390.tad.melco.co.jp (Postfix) with ESMTP id D982D17E073; Mon, 2 Mar 2020 18:57:18 +0900 (JST) Received: from tux554.tad.melco.co.jp by tux554.tad.melco.co.jp (unknown) with ESMTP id 0229vH0t007040; Mon, 2 Mar 2020 18:57:18 +0900 From: Tetsuhiro Kohada To: Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp Cc: Mori.Takahiro@ab.MitsubishiElectric.co.jp, motai.hirotaka@aj.mitsubishielectric.co.jp, Valdis Kletnieks , Greg Kroah-Hartman , linux-fsdevel@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] staging: exfat: remove redundant if statements Date: Mon, 2 Mar 2020 18:57:16 +0900 Message-Id: <20200302095716.64155-2-Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200302095716.64155-1-Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp> References: <20200302095716.64155-1-Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If statement does not affect results when updating directory entry in ffsMapCluster(). Signed-off-by: Tetsuhiro Kohada --- drivers/staging/exfat/exfat_super.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index 708398265828..75813d0fe7a7 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -1361,11 +1361,8 @@ static int ffsMapCluster(struct inode *inode, s32 clu_offset, u32 *clu) /* (3) update directory entry */ if (modified) { - if (exfat_get_entry_flag(ep) != fid->flags) - exfat_set_entry_flag(ep, fid->flags); - - if (exfat_get_entry_clu0(ep) != fid->start_clu) - exfat_set_entry_clu0(ep, fid->start_clu); + exfat_set_entry_flag(ep, fid->flags); + exfat_set_entry_clu0(ep, fid->start_clu); } update_dir_checksum_with_entry_set(sb, es); -- 2.25.1