Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7632911ybl; Tue, 24 Dec 2019 06:09:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyXj7443xBJHqkljFeeNEwEPNFkarpjBOyjterpdexSnVoj2PXWuLQbitpJ1hxPzJB/AXMW X-Received: by 2002:aca:dc8b:: with SMTP id t133mr708416oig.98.1577196560266; Tue, 24 Dec 2019 06:09:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577196560; cv=none; d=google.com; s=arc-20160816; b=x9b0s6am0D9lgEMkKBjpWe2FZUsM4x5OLkhazOw3zLMN13oPCk8VQushn0o+ht7z9E unbmHSaLMSD0Zyt3mNLSAc+SWvQfiBcJdzEv8XFd9VYUpvQMy25J8UL9NCSMDc01gFGc h75h6D5zJxpBFxzaoa74YMJYWrr3ASVFnZAjxL78fuHjtToHLVAUF3mgIerr+iqwjXTA 9ugqXzV4+VotsgytuFTZ844LcwG64V9/K/n7+okK+LnlTqW9bekE7mF2qZ6XOS14ZxdE 6yeptGtX9Pk7U83vUd7DuW8ChdsBa+zA6Cgur68YO8iU9+zTQuRD73M0DBLgiAJ7OqY/ x0GA== 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=9Tu0ACziIb0pwPkERZKVJJHFnzB26KvqAZkq64bZwNU=; b=FmpB+fS7BYhxyYt0fIAxBpZusj5D58yJlscx9qnhtbPAverGNNMThuaEhiQjjT9OFi t3qRx5a+6WcVq2OjMi9Zfcx7CPx9yvieLTTo6kq48LzsjKn4rwD3WA8wXfDxU89a5F89 S8ZQiZYaHVZ5vXKvtxxICL9qumB7LfsGDpsU1Fow/6CAx7uGx7Lo8i7osSloysnXRRiJ CF5ro06uA13nsB+wCQKchqqAlX7GN7AQx/6duhHB98wBKDREy1n/cu/NKDzHLn1RtBMs t8osY48fFmkeLtPiQLe9jHatUzwTq1mR/NtSkPlxybvBWdacXflAW/and5qZyaeM1BO1 WS7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 x7si11233526oia.165.2019.12.24.06.08.58; Tue, 24 Dec 2019 06:09:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726214AbfLXOI5 (ORCPT + 99 others); Tue, 24 Dec 2019 09:08:57 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:46904 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726157AbfLXOI5 (ORCPT ); Tue, 24 Dec 2019 09:08:57 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 711D199590958C13ADAC; Tue, 24 Dec 2019 22:08:55 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Tue, 24 Dec 2019 22:08:46 +0800 From: zhengbin To: , , , , CC: Subject: [PATCH -next 3/6] ath9k: use true,false for bool variable Date: Tue, 24 Dec 2019 22:16:03 +0800 Message-ID: <1577196966-84926-4-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1577196966-84926-1-git-send-email-zhengbin13@huawei.com> References: <1577196966-84926-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-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes coccicheck warning: drivers/net/wireless/ath/ath9k/ar9003_aic.c:409:2-12: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/ath/ath9k/ar9003_aic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/ar9003_aic.c b/drivers/net/wireless/ath/ath9k/ar9003_aic.c index 547cd46..d0f1e8b 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_aic.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_aic.c @@ -406,7 +406,7 @@ static bool ar9003_aic_cal_post_process(struct ath_hw *ah) sram.com_att_6db = ar9003_aic_find_index(1, fixed_com_att_db); - sram.valid = 1; + sram.valid = true; sram.rot_dir_att_db = min(max(rot_dir_path_att_db, -- 2.7.4