Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp180165iob; Mon, 2 May 2022 16:26:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR3weqaAGUjXu5Q3eppHwB4P0FuZ7DD69GFEe1KKjTfBQK4AJW2xpo4bK9VRt46zD7qNE2 X-Received: by 2002:a17:90b:314e:b0:1dc:ae7:8588 with SMTP id ip14-20020a17090b314e00b001dc0ae78588mr1627137pjb.125.1651533987181; Mon, 02 May 2022 16:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651533987; cv=none; d=google.com; s=arc-20160816; b=SnW3jqrsw1Vnv8fCZLJ5qXEiq9vn+kRXVZK+17QS21MXiObZ1zGv4i7sya/SeuGaMe FcYAE83k6kh3gOEAb4D6iOEr1TIyCGMcOEx4UFdc+cu6yzLvEjDBbp3jJ5qOGCGyk7JE CZ0cNRm4zPP8EiAv6Dhg/4uZx9lgGQOBTvrL9hOsJnDczNBNL/BsrGmzXpHXxJZieimB 4ErPsEZJGTa+LiYm391JfMpfZsXS5MaXftxzw/dmArcS39hyY6w4/iF0a6DFxMShVRiV ALKFac5OszxFOOsqsNgpGsi92Prdmem/pc1X6mVvvEl+BDGOxg8k89eGNUzepD9gFi8o /evQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=72AfD5UvnFZK2yF991bvsMS9TybS6/Tufgf+I4j+qeQ=; b=CV+omY58AmIZDUpHku1hc1lt4DUz3x13T5ZOri2qSugZNenWJMc9n4rq4caB3hASA3 H7sgL+609BKvuCmHMZDLy3jwnRiuOnVvV3mKokchT874+COSmDg6MtxrlZWSrYU+gwIZ seBWgWJhqKgG4pG9iiHIIhAYoWrKGP66vk9Cu7WOSb/0d7CaAdrO4NhHQc1ObfoAJ8le zZkGJKxpl+HYdSFU5n6m6omMjZaW0aeHAt7OEyWCmOYW9LqqN/Fr5PqPq/cktBYh7WD/ xkPgIw9oxwJyZ5vUqyibuYuNObLLdz9LJ7UfWHExfvOYDwZUfX/8R7Ij398tlITUtjvQ nXsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZnsBIT9N; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a64-20020a639043000000b0039d9bea33e4si15424101pge.277.2022.05.02.16.26.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:26:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZnsBIT9N; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BC11427FF0; Mon, 2 May 2022 16:26:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381674AbiD2XDz (ORCPT + 99 others); Fri, 29 Apr 2022 19:03:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381676AbiD2XDs (ORCPT ); Fri, 29 Apr 2022 19:03:48 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E372F58E72; Fri, 29 Apr 2022 16:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651273229; x=1682809229; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=858DoRS31fHhMLUp7/Yb4Lvh4eKNkn9um6ioVF9KkCw=; b=ZnsBIT9NjlnZ5VndYXzEKIzkhKIbVFhFZ10UpEevvUPjzNpxION8x7ov CniOhIQtss21uzI3Q/ew0HgFn2XPYey+xX+khkrwNJtgFykPjOHbxMG65 LM54TW4rFnjTYLiQLMLPclgEBPAUNH3tyhk02vDZEbgghGq/TrihPQlWO 4USM4CqCeszci3OERXXvSORacH4CFTf+sXGSchmMM6LpKV35YJ/N+lPgx zDac/2Sozm1jTqwrkN53GLIJXbw2I3jKY+xosxmHP4K0rqF6QFNOFN/WM Z57orgIH9Knrp/etr5OlAhjS8UYvZOTFCHZ5zVGG1Fg+lITmfHvGtpk95 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10332"; a="329741978" X-IronPort-AV: E=Sophos;i="5.91,186,1647327600"; d="scan'208";a="329741978" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2022 16:00:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,186,1647327600"; d="scan'208";a="566347931" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 29 Apr 2022 16:00:24 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nkZb6-0006f4-2h; Fri, 29 Apr 2022 23:00:24 +0000 Date: Sat, 30 Apr 2022 06:59:54 +0800 From: kernel test robot To: Balakrishna Godavarthi , agross@kernel.org, robh+dt@kernel.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, marcel@holtmann.org, johan.hedberg@gmail.com Cc: kbuild-all@lists.01.org, mka@chromium.org, linux-bluetooth@vger.kernel.org, quic_hemantg@quicinc.com, quic_saluvala@quicinc.com, quic_rjliao@quicinc.com, mcchou@chromium.org, Balakrishna Godavarthi Subject: [PATCH] Bluetooth: hci_qca: fix excluded_middle.cocci warnings Message-ID: References: <1651228073-1999-4-git-send-email-quic_bgodavar@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1651228073-1999-4-git-send-email-quic_bgodavar@quicinc.com> X-Patchwork-Hint: ignore X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: kernel test robot drivers/bluetooth/hci_qca.c:1633:42-44: WARNING !A || A && B is equivalent to !A || B Condition !A || A && B is equivalent to !A || B. Generated by: scripts/coccinelle/misc/excluded_middle.cocci CC: Balakrishna Godavarthi Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/intel-lab-lkp/linux/commits/Balakrishna-Godavarthi/WAR-to-handle-WCN6750-hardware-issue/20220429-193129 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next :::::: branch date: 11 hours ago :::::: commit date: 11 hours ago drivers/bluetooth/hci_qca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -1630,7 +1630,7 @@ static int qca_regulator_init(struct hci msleep(50); } - if (!qcadev->wlan_en || (qcadev->wlan_en && gpiod_get_value_cansleep(qcadev->wlan_en))) + if (!qcadev->wlan_en || gpiod_get_value_cansleep(qcadev->wlan_en)) gpiod_set_value_cansleep(qcadev->bt_en, 1); if (qcadev->wlan_en && !gpiod_get_value_cansleep(qcadev->wlan_en)) {