Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp89355ybz; Wed, 15 Apr 2020 05:07:48 -0700 (PDT) X-Google-Smtp-Source: APiQypIAjrDe2C7dQEi4gIjikzcDdUxeY5a16WBR9Gwi/U1eH+9/b1RnP2d6eflW0Ekhy+EDq5O8 X-Received: by 2002:a17:906:d18e:: with SMTP id c14mr4931669ejz.120.1586952468028; Wed, 15 Apr 2020 05:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586952468; cv=none; d=google.com; s=arc-20160816; b=pkyzQ1iLdoYMzAsnWsUfI1xc+l0hDMjyxWnM92+bAGRbaQfyvccjIv77C1uv/5JsAW YrokVAHsofVlg9qYcQAeWF+xiZ/OOTRQBy2seaWgRW5yNx7aOizpyrVldHrG6oGxzDMr 4d4kdnRGkpscuLwJrocrPIFHOOi6N/g1SYYVULmJeIa4xOKiNLQSJ8cTiopydU49bnQ2 dvO8Z8B/lsQUvGAPVvodSZjdIigFNMj3T5rm+ymgUiN8b8NYdVWQvgau/WFsOoIQAZ/G PEVo1zCk9Xu6YmLKujdiSVeyivyjnqvNXuipZslUzsOVfsnabcNaPvDoiZGdim/BzMOr IMRQ== 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=YLzfaL3l+yat64wTkQ2vXiuMbJf6S5D9N7D5Rkc63v8=; b=sp3nyBC4LvDf5JMfwRkApS4yaNX+VncNfEKau1NfNGZiSSnaItk+Q5OnVd2OPQeg79 A1NRnUVIHgyI+FEnnUJHgtXDx36J8omDiwLpi32JxUE1g6+5IYlDrF3BiZ1xsI/S1o2c fSfxOSRDWtPM0Kqyxg6HkCkydBEtsxQvS0P8Kq4nG3tbBtLbN0lgLSgzG4WgdpYbiCUE MyJCy5YWANKDFNLVGE2x3m8y2XtVhUVeLlhesGS+aILIVKRStP4AAK3lwZA24AgPKDs6 hny/3uDeMOGPABJvgLZGNK0eTYDYNqZttzJIhGxa7wqDjY9alzMCaQMaXFPYJW8qbl7w 0eHA== 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 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 j12si12001213edn.292.2020.04.15.05.07.02; Wed, 15 Apr 2020 05:07:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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: best guess record for 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 S2439341AbgDNLfu (ORCPT + 99 others); Tue, 14 Apr 2020 07:35:50 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:44274 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2439325AbgDNLfn (ORCPT ); Tue, 14 Apr 2020 07:35:43 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 734AF9BF27504F9F8185; Tue, 14 Apr 2020 19:35:41 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Tue, 14 Apr 2020 19:35:33 +0800 From: Jason Yan To: , , CC: Jason Yan Subject: [PATCH] ioctl: use true,false for bool variable 'past_eof' Date: Tue, 14 Apr 2020 20:02:01 +0800 Message-ID: <20200414120201.35242-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 Fix the following coccicheck warning: fs/ioctl.c:364:4-12: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- fs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ioctl.c b/fs/ioctl.c index 282d45be6f45..9ee11a2bb807 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c @@ -361,7 +361,7 @@ int __generic_block_fiemap(struct inode *inode, */ if (!past_eof && blk_to_logical(inode, start_blk) >= isize) - past_eof = 1; + past_eof = true; /* * First hole after going past the EOF, this is our -- 2.21.1