Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2167353rdb; Mon, 9 Oct 2023 15:20:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKJUW2/lLLuy41zqc6AmurlKvzblOgJt89EkL8Ou6ErEjvjVSJ2GS8KZSobc2eM2tzOR4j X-Received: by 2002:a05:6a21:7882:b0:160:dacc:8ac with SMTP id bf2-20020a056a21788200b00160dacc08acmr20541081pzc.8.1696890045673; Mon, 09 Oct 2023 15:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696890045; cv=none; d=google.com; s=arc-20160816; b=pX6H3U7QZOq+VwU80aUSNpG1Rf5lncSMxMNvFHXsEftK713NuLCwKnSFc2jOFetnQS pr/klP5QxeNRdus+nlAUeQ8U/g8dXtSVvrNl5Pna+7NLXZHQhQTepEmgmNnZqZw82YFZ MoV58wzpjzNZH5OFwkE1xiwzwovVVRi5jwSdTkUai7OLkesy92d5TAX0NPw87oTEZzyE rwrtQzrdFZ8FlTMfNOP+uJby08gmr5akQU4u3tHxWRw0Y+fGT7PfQYpcQ1HfyMPtHb+x 5Xez7UEDc09sj86psK/Q5GloTqcT2+UIylDv5nj1wfHhSDEs0Jhs1HGH2YSgWOWUnYX7 rc7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=Crq+lOpK+ReGyMII0gavqyrUbS/gmXvckF01KygBE3U=; fh=EI/CyvkICLESOZ42ZmWNfbDHO3gujDNLIPiuZ1v28kE=; b=g3et3NPDXK542RsRjTfgIbHn/noaLLMyf1A7u0UH2oVh6Ajsepw81QvDP07WsWA7HT xh9GOltWRLd6sDNOsqykpRBbe05JqZXMGA4cGrwTMvCfBLF4e9/4XaUamM6897dgEpMW x/9a+LQg3QXafNOv2Lap5UZBdml5xa1fKNWAUCVgcTxq8U2g6cZelK9Tg7r5InmbgTFh A4V5EX7IKsoSBxDXBtvNIZe0q+WQnnmzoybyZRcXf+b3xzbvjBX2e+y1aJDO9/aGoy/8 G2uNsMwGB6DpvA9bsFZUDxFBI1+oyuoWnkgelEzO8pD4ZFasH+RyELJN8fMQBfsVMQy6 Qysg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BfjLqvQJ; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u21-20020a056a00099500b0068a68054661si8635398pfg.71.2023.10.09.15.20.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 15:20:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BfjLqvQJ; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 76FAC8095814; Mon, 9 Oct 2023 15:20:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232390AbjJIWUb (ORCPT + 99 others); Mon, 9 Oct 2023 18:20:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234610AbjJIWUa (ORCPT ); Mon, 9 Oct 2023 18:20:30 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F1FFE6; Mon, 9 Oct 2023 15:20:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id 95EAAC433C8; Mon, 9 Oct 2023 22:20:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696890025; bh=4io3LO+uu080DbbCaJxSHVDpj0edN9NVy7xVKX8iYxU=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=BfjLqvQJsjXODlTcOArD7a9TKKIwFBbNY3F7GCvcPytvoo76zmfxDkKFhmkrQvtP9 WA+SC/xKyPd4sTNFqqm+bGtyawu8j+Zs2DMom3fOte5xIoe1Pos2mOM7lc5jozeZqD 81BWGJmrnsXhly+AfaDIcTykHKhe3bZb6MSagVvV/+ttRH7Y54D6EKPbUMnQ4SRDZi mGkpXItZI3aOgK+bf2qKP1pgI2rC3oR1wUNUmWdDIO1d2VK3rZacH8Fmb1OIRx7pdN pvfcoowyOFbaRUtIxxKIatrHYrXrzv3QAC1m4V1473TBP/pOhb5FlPoEPSZV6Rzjfq h93vGOPgLGL0w== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 73AD8E0009C; Mon, 9 Oct 2023 22:20:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] Bluetooth: msft: __hci_cmd_sync() doesn't return NULL From: patchwork-bot+bluetooth@kernel.org Message-Id: <169689002546.32192.12724090135362600749.git-patchwork-notify@kernel.org> Date: Mon, 09 Oct 2023 22:20:25 +0000 References: <5fffad33-4d19-4645-a21f-57321d1c82a6@moroto.mountain> In-Reply-To: <5fffad33-4d19-4645-a21f-57321d1c82a6@moroto.mountain> To: Dan Carpenter Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, linux-bluetooth@vger.kernel.org, kernel-janitors@vger.kernel.org X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 09 Oct 2023 15:20:40 -0700 (PDT) X-Spam-Level: ** Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Thu, 5 Oct 2023 14:19:23 +0300 you wrote: > The __hci_cmd_sync() function doesn't return NULL. Checking for NULL > doesn't make the code safer, it just confuses people. > > When a function returns both error pointers and NULL then generally the > NULL is a kind of success case. For example, maybe we look up an item > then errors mean we ran out of memory but NULL means the item is not > found. Or if we request a feature, then error pointers mean that there > was an error but NULL means that the feature has been deliberately > turned off. > > [...] Here is the summary with links: - Bluetooth: msft: __hci_cmd_sync() doesn't return NULL https://git.kernel.org/bluetooth/bluetooth-next/c/99976bf519f2 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html