Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2244967pxb; Mon, 11 Jan 2021 05:04:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4/x1oIfN8QEFQWVTHPB8hnC+Zq+IyXcxkehKcmK0q9aMAywbyKEBZiONShUuaDavDrwzw X-Received: by 2002:a17:906:369a:: with SMTP id a26mr10240557ejc.276.1610370252971; Mon, 11 Jan 2021 05:04:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610370252; cv=none; d=google.com; s=arc-20160816; b=js6ckZz1ZApARUguVPhdBOEOVJYVGVnMMdl1XaEP0cE/Q0IBYib8P29W0ARF0GBVoV 3wV5q5MK86drwk9gbYnQkMFDIrPq09ouT0gAo66HId4ifzYHW/GXuaYusRAbAhaCs3ZF L5OmQOgz5V867khPgXzG/vGyYaaXzrqwsgClxxw9SgplgQn7/pfhAWQzL19pzg7wxIhd qZUt3yBWF/wWINDgqxGrVbLial178bIDU6vwpQKo9F0TnI16TF6gLUNVLIWUtJPQGSdB 0V8PRc0VHIznba4m5J0MHCIz0Y147+Jzb2SwnKxSS1Uot8Uyv0WDKX61b+d/55WOtoWG ntOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=96sxFfgOzTvq+UoJTrNC/BlpXaQIvl9DNGAIeHEVQVg=; b=qZ2iuF4CXDosd6J07GpIeLL/r6Rkfvq8Rk31PyNjHo8CI30oP763u+HG+XI/2EBSrO BaHalZviT80GwxUdzSkBPknaBKCeTZDKz2/1OZVgRf+JnRF5YG0NupHgHRrk3F8JvVzz 9/eJ/YcO1yeoauueeyWQI/EOBFhN2D3T9/PXNll/DuEVT2S0dVu0Ama0qxZdwIDQs/H2 wVnxoG1XJDygGNZ9b1bciL3RM1MdmMNLH5gKsg1Z3+hnPRFY2Q2OGUA4Ih5mvyP886Bn WY1IdrxgHvawXrO5KWdnisNfegV1Zc6ADFFPWYZBph7L9MkiY1JqNe+uP+6E8QnUlPgT 0GBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si6711987edo.323.2021.01.11.05.03.49; Mon, 11 Jan 2021 05:04:12 -0800 (PST) Received-SPF: pass (google.com: 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: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728517AbhAKJhv (ORCPT + 99 others); Mon, 11 Jan 2021 04:37:51 -0500 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:44550 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728062AbhAKJhr (ORCPT ); Mon, 11 Jan 2021 04:37:47 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R671e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=abaci-bugfix@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0ULL1QpG_1610357816; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:abaci-bugfix@linux.alibaba.com fp:SMTPD_---0ULL1QpG_1610357816) by smtp.aliyun-inc.com(127.0.0.1); Mon, 11 Jan 2021 17:37:02 +0800 From: YANG LI To: axboe@kernel.dk Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, YANG LI Subject: [PATCH] ata: style: Simplify bool comparison Date: Mon, 11 Jan 2021 17:36:55 +0800 Message-Id: <1610357815-69958-1-git-send-email-abaci-bugfix@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./include/linux/ata.h:621:5-25: WARNING: Comparison of 0/1 to bool variable Signed-off-by: YANG LI Reported-by: Abaci Robot --- include/linux/ata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/ata.h b/include/linux/ata.h index 6e67ade..89245f3 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h @@ -618,7 +618,7 @@ static inline bool ata_id_has_flush(const u16 *id) static inline bool ata_id_flush_enabled(const u16 *id) { - if (ata_id_has_flush(id) == 0) + if (!ata_id_has_flush(id)) return false; if ((id[ATA_ID_CSF_DEFAULT] & 0xC000) != 0x4000) return false; -- 1.8.3.1