Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp578645ybz; Wed, 15 Apr 2020 14:25:52 -0700 (PDT) X-Google-Smtp-Source: APiQypIwJaaW2+yYtdGjCFGTPTZ7xlX0Uu4DGDnZLMS+NRYWd+ku3E5sI0IFbNxAA1NO0EODM0BU X-Received: by 2002:a05:6402:120a:: with SMTP id c10mr6915002edw.15.1586985952343; Wed, 15 Apr 2020 14:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586985952; cv=none; d=google.com; s=arc-20160816; b=V1tx8gQ3Fr5GgHmxHCVe577bk6j/gOHwblzvn2ktB/k+0f1axbs22/4So1dPmEPia+ eznWAAEdu9/uw/vaXensksyzs8WjOq9BpBOUr3hpTmiBW2HyDzNetbxE26luwakeAnK9 9XKXw9ot5YgbM0XMQLNGi4x5muJvdA6KYV2wxLJ7LKICDr0Sa6uwiEc+eMp3hpasQ8VP jqLphlfraKCXabUX99822bGSyBLEyFdn2bwlzEzzRkY6874K2yICuWdhI7q7NImQYf1o lUvvv276CHrnvhGm8Pa4M6vGwuvVI1Yc2l+wHuP+K6t8IyuJEaX9rdD1fVsHswr1XABi DMkw== 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 :message-id:date:subject:cc:to:from; bh=wRt5aYPNu/d/4NRDgUlPOPDRHsGdLzhfPRZLMuGd8zU=; b=zvBWvI+oamUTDw4RmdCuLUzU8CyxQJJA6N0OvLdSL6LjHU13bwcys/veJQV9TGg+W0 UJmpycRu5KtUFKBwOnvcwz5Ls7PpE9etW0L6BxWIpcWwGd7CrxmnIVGrSg/hn9/ymfMi eX9H4m/bCEGZ6psAA6rdbwUngE3eJuP/gCU64D4qDJZf7dq6AtYkej6qY2TK12JBxFCx NHu816OHIce84XN40G9XL/AlKHDPBIlcigvDCjOhFwztnr300ABTPIdpCXTiBV1awj33 i/9N4VoXsLZjieKcQkEnlne+YPp9dI5VOuEl8rbKi+dhUbvBxvjptEXDYjci8ejXy/Wx +s8Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j24si6267390edt.64.2020.04.15.14.25.29; Wed, 15 Apr 2020 14:25:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439412AbgDNLiU (ORCPT + 99 others); Tue, 14 Apr 2020 07:38:20 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2318 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2439385AbgDNLiR (ORCPT ); Tue, 14 Apr 2020 07:38:17 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id CD9FA45AF00F09E57F75; Tue, 14 Apr 2020 19:36:07 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Tue, 14 Apr 2020 19:35:57 +0800 From: Jason Yan To: , , , CC: Jason Yan Subject: [PATCH] exfat: remove the assignment of 0 to bool variable Date: Tue, 14 Apr 2020 20:02:25 +0800 Message-ID: <20200414120225.35540-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to init 'sync' in exfat_set_vol_flags(). This also fixes the following coccicheck warning: fs/exfat/super.c:104:6-10: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- fs/exfat/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/exfat/super.c b/fs/exfat/super.c index 16ed202ef527..b86755468904 100644 --- a/fs/exfat/super.c +++ b/fs/exfat/super.c @@ -101,7 +101,7 @@ int exfat_set_vol_flags(struct super_block *sb, unsigned short new_flag) { struct exfat_sb_info *sbi = EXFAT_SB(sb); struct pbr64 *bpb; - bool sync = 0; + bool sync; /* flags are not changed */ if (sbi->vol_flag == new_flag) -- 2.21.1