Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7391710ybl; Tue, 24 Dec 2019 01:33:12 -0800 (PST) X-Google-Smtp-Source: APXvYqy+tCH1WstwOxkquiaCdl5NV9IAMKzM33SrxLp5ltkTGf17RP6UPQHpBXrb2+KT0nSFJprX X-Received: by 2002:a05:6830:4b9:: with SMTP id l25mr38681436otd.266.1577179992487; Tue, 24 Dec 2019 01:33:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577179992; cv=none; d=google.com; s=arc-20160816; b=ppFzm6lYd/HeudNMTPK818pFW9jFy9uHgA+W4f/jl/gmxxlsHslkvyV5xcVUG4SSrm pVSglE+9EnDgjb+NfetQn4ftegVWNZ4xfAzgFC+NDB2wgFOqpAl1H+BQlvUYlHovFJFW IJi8dVijMQvmvcdqcv0M5R2baQ2C/OAzB89xmraq+VE/grs52eLCEzEAF0ZOyyC1PjxO 4kytLz2HtbTU2mlOVIBvK6SsB/H1cAMuXcjplrjzTEB6UFCwd97fnvtgQoiyigE9gLuN oN6S8hQxheNWJEL/3znOepB8eEOz8U8gUKVRT5+IDi5hh7rsOk6yz+dJR6EIX9xEc4VX 0biA== 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=RVcFQzQy+3JiNiykQJulCpcn/L+MQw9RkHZn5gUpSHs=; b=CqXvS9R5R2UJOJyupINTHxs1iAsxdZ9INLx5YKjDWBvF7Tc6wxYoqZ809pnA2a+DOq lfYIdRsivnDf/LGYToBiooH1cWroz8/s1/ApKZvOFlF5CTuCl0DOsryfQDFFwy2OQhDy 8LTQzVD9Xo+llN2SBE3EzSo76iqfCMJbkx7XZErb0CoJR0XkeROs2/j6Wg4vhmbZp4gS NcThEtFD8YmfLNFpJ9kkujj66yGVyXu+QgibzGoG6YeP93p1Ff7EjgiHHR6HGZ1Fe5Fy /CVFOTEc+68L+AZ5/8/iQaFbqf1JzWR17tFNGlJDy9yiWRtwrOkEvZgxspo5N2caMBxO vg4g== 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 30si500587otr.75.2019.12.24.01.33.01; Tue, 24 Dec 2019 01:33:12 -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 S1726195AbfLXJa5 (ORCPT + 99 others); Tue, 24 Dec 2019 04:30:57 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8173 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726084AbfLXJa5 (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 D8DE47402544F8D919D4; 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:47 +0800 From: zhengbin To: , , CC: Subject: [PATCH 3/4] tty/serial: atmel: use true,false for bool variable Date: Tue, 24 Dec 2019 17:38:04 +0800 Message-ID: <1577180285-24904-4-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/serial/atmel_serial.c:1062:1-23: WARNING: Assignment of 0/1 to bool variable drivers/tty/serial/atmel_serial.c:1261:1-23: WARNING: Assignment of 0/1 to bool variable drivers/tty/serial/atmel_serial.c:1688:3-25: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/tty/serial/atmel_serial.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index fa19eb3..181da0c 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -1059,7 +1059,7 @@ static int atmel_prepare_tx_dma(struct uart_port *port) chan_err: dev_err(port->dev, "TX channel not available, switch to pio\n"); - atmel_port->use_dma_tx = 0; + atmel_port->use_dma_tx = false; if (atmel_port->chan_tx) atmel_release_tx_dma(port); return -EINVAL; @@ -1258,7 +1258,7 @@ static int atmel_prepare_rx_dma(struct uart_port *port) chan_err: dev_err(port->dev, "RX channel not available, switch to pio\n"); - atmel_port->use_dma_rx = 0; + atmel_port->use_dma_rx = false; if (atmel_port->chan_rx) atmel_release_rx_dma(port); return -EINVAL; @@ -1685,7 +1685,7 @@ static int atmel_prepare_rx_pdc(struct uart_port *port) DMA_FROM_DEVICE); kfree(atmel_port->pdc_rx[0].buf); } - atmel_port->use_pdc_rx = 0; + atmel_port->use_pdc_rx = false; return -ENOMEM; } pdc->dma_addr = dma_map_single(port->dev, -- 2.7.4