Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7390595ybl; Tue, 24 Dec 2019 01:31:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxaDRvVl0U5qf9x47fxWuMlAMA01jXS1LibqglGARUu4R1W4aG4tJgEdRPluA9b9sQ/G5DD X-Received: by 2002:a05:6830:1cc9:: with SMTP id p9mr13024247otg.59.1577179910849; Tue, 24 Dec 2019 01:31:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577179910; cv=none; d=google.com; s=arc-20160816; b=ZtDVc9oRuUeVhLcr64TKE9sxG0T8caSV3EI2lUrwahOw7E4MhnL567OoG31XVSTzlh jvE+Depf3gQCbnmbc2ZAFRbNe2l0a8GVyqMdmx7oA7IywPOyseh4neKcHZIsHlkQUJnD uSTj+3IyK+EXVWNux7ODyn1TuaxIEft8W8Lp/QCD0pwgW+vvY2uSnWIiQu9qH5lJb2H3 CgPu7oJxHSKT8YXkKQW+cFOR4HJjKWWANjk1dxOUGOYy95xw8TlJjXRf4eRjjg89+SSZ 0MSu98/O84qHv90JMm/w4T67+f3ydiwsT5truvKg9GWioU6A4ym21pRhDF2GTA6RyswT wAEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=CoX7l6e3WBWH2g4MFCZD0IhNmWrEiJoL3AqZ6GiJtRk=; b=jM0dzre7bm5MYrys/hlmdp5grfKyCRjjp9VXEsF0NneSeSz8Hrh9SvtXKeXofF4bYq VYaMSO3Len/ZLSOaRUjhr5+Zu2c6CaxkmyD8kbc+LvhEOgN3nCKvCBRj59oKamotLfYJ whqByBXQi/7w+voaVmNOnCOM3IQhNcwLHIoycIjEYzhRZ0ETP0q3n/S52l0Uux55d05L 0kP0vFFtfiedN2tRb+f7xv1PflJVLfMc77TsDMH5bQEdGGTYR+iMjqhyri0w+p+RQrBz 55iVSUCAvKl5zFWL7/+nMr5FYqr/FWomGCtDiDpV/UwqoCh+wjmxHvNnURkkXvbDFUJK gz4A== 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 y140si8240356oia.49.2019.12.24.01.31.39; Tue, 24 Dec 2019 01:31:50 -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 S1726325AbfLXJa7 (ORCPT + 99 others); Tue, 24 Dec 2019 04:30:59 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8170 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726091AbfLXJa5 (ORCPT ); Tue, 24 Dec 2019 04:30:57 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id CCA62917C4FB4A962265; Tue, 24 Dec 2019 17:30:55 +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; Tue, 24 Dec 2019 17:30:46 +0800 From: zhengbin To: , , CC: Subject: [PATCH 1/4] tty: synclink_gt: use true,false for bool variable Date: Tue, 24 Dec 2019 17:38:02 +0800 Message-ID: <1577180285-24904-2-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1577180285-24904-1-git-send-email-zhengbin13@huawei.com> References: <1577180285-24904-1-git-send-email-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes coccicheck warning: drivers/tty/synclink_gt.c:2101:3-19: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/tty/synclink_gt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c index 5759b6c..eebf10b 100644 --- a/drivers/tty/synclink_gt.c +++ b/drivers/tty/synclink_gt.c @@ -2098,7 +2098,7 @@ static void isr_rxdata(struct slgt_info *info) if (desc_complete(info->rbufs[i])) { /* all buffers full */ rx_stop(info); - info->rx_restart = 1; + info->rx_restart = true; continue; } info->rbufs[i].buf[count++] = (unsigned char)reg; -- 2.7.4