Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8263537ybl; Tue, 24 Dec 2019 18:40:00 -0800 (PST) X-Google-Smtp-Source: APXvYqx9UegsdSD3e3z+VT9l5PTQUXZlt59kDdQja4kAdBLuojYvOVS69gKHgHKVgt1mf9xnf+jl X-Received: by 2002:a05:6830:1385:: with SMTP id d5mr11257931otq.61.1577241599899; Tue, 24 Dec 2019 18:39:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577241599; cv=none; d=google.com; s=arc-20160816; b=rHFQJx+J3EOOGS0/U5ILlnc7ytVxMLe6wXxC4ZcquKRpi/oOBNkRreTrX/BW4GdRp0 VuQeyNz6KqxL9y4STxgw4RSOJbpgL4e12dWq4KJFTIIZxsjbiYufGK3f4rrmk1jVspvg uDXh9Uigj5ilOE4oLPNx3D8KdEcvR6qy9+W/2FeCBrMv5dzIvGjLyqu7TfV5tRS9IZLA jXGN/1HnO2WdKS/MrV02bE18fIEm1kNMT0DJ4xttiziJCnOO0HKZfU3k7PvuAHjCpx1E QafL+Z0kvTtbeRNHByvEt0sLKUS+sRevx5MtyXhZgGVsyYU7tvQarC94GzuKIOS8IyQw FABw== 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=bvrIfup8SEADyJwUicWEHgPF3X4MsRTqTpEmtzIPHdQ=; b=zT5LovPEeZQ51MNR20wEI7R0/xwEDui+InOhAFruZpIFFZDHlb8GlAPTM7SsqR/Dl8 aqHWtJDKwfCGrxqi2ZJRs+RGsd0UShTcHvtcr6lqVOtKPlutDfvN+8X3XKEp185PUWwn 6y72WGcE2I9hyuXtmE1lA8ZB6cMsY73rCxGxiTLAOeVNOZpjD8T8KftBwP8ud/y9bChD PgjanIwfmg8uNZ90q+KwwDhb11s/1KPJH/xF6tD7QpbqLMvz+j+Jj56xqGqhCbk6f8vc caphv7wMdWsj/ZDYWeKxhy95pHioBJNrXm1Onj/ncuFz9w3rSoFwwdhxncq8fUQPd7rZ i/Ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 i25si12040714oii.259.2019.12.24.18.39.41; Tue, 24 Dec 2019 18:39:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726258AbfLYCiv (ORCPT + 99 others); Tue, 24 Dec 2019 21:38:51 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8179 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726317AbfLYCiu (ORCPT ); Tue, 24 Dec 2019 21:38:50 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 058CDE93C6CC6CD10B3A; Wed, 25 Dec 2019 10:38:46 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Wed, 25 Dec 2019 10:38:38 +0800 From: zhengbin To: , , CC: , Subject: [PATCH] ext4: use true,false for bool variable Date: Wed, 25 Dec 2019 10:45:59 +0800 Message-ID: <1577241959-138695-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-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Fixes coccicheck warning: fs/ext4/extents.c:5271:6-12: WARNING: Assignment of 0/1 to bool variable fs/ext4/extents.c:5287:4-10: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: zhengbin --- fs/ext4/extents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 0e8708b..d8611be 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -5268,7 +5268,7 @@ ext4_ext_shift_path_extents(struct ext4_ext_path *path, ext4_lblk_t shift, { int depth, err = 0; struct ext4_extent *ex_start, *ex_last; - bool update = 0; + bool update = false; depth = path->p_depth; while (depth >= 0) { @@ -5284,7 +5284,7 @@ ext4_ext_shift_path_extents(struct ext4_ext_path *path, ext4_lblk_t shift, goto out; if (ex_start == EXT_FIRST_EXTENT(path[depth].p_hdr)) - update = 1; + update = true; while (ex_start <= ex_last) { if (SHIFT == SHIFT_LEFT) { -- 2.7.4