Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5348626rwd; Tue, 23 May 2023 23:52:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7wbjDgJyqTlUjR7YvzxCLuJHCivovorerpQW7+cFO04AjoEnU4V6FVNN6XuUUldzE/gsME X-Received: by 2002:a17:90a:cb8f:b0:253:8016:36d2 with SMTP id a15-20020a17090acb8f00b00253801636d2mr15843125pju.43.1684911176094; Tue, 23 May 2023 23:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684911176; cv=none; d=google.com; s=arc-20160816; b=eN0FDtI0so2vmk5Q7bXtQ/lukFJPu0yCAxrjszKLZZTXQYjPrWwQ8PNzWq9sahQ6ED pmGJJxcUBBQL5pejMk9mWhRf6cpAhltvynPjw+KcU2/1rnLFHhmVn+QLFKXpq4Z/arjB J3Lyjz1K0SaQYB2vizxm9whQJSuPNWb4oM4Cb3DqS/TmduHQEEEq5mw07G91W8Aez9pB qhd03INiDlhSfSWZpIL5aB4MMJnZjsg214QSUgAD8wryfSnk+cjZf3j2h2Md+bmxWieH 1YqB1sO/YXx8LFrQ7MqKGvPtRggVsxkjkP7gHO5aETASX/jJ7HnetI075lzRXHGEaKuW upYA== 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=aFwfj9W3H4hXf1ZMZipSHttpXbIUAquQbCC2E/57Oag=; b=wYiW0Hxyekb23iMspiTqjsSI+KwqM99OyU5N8QLcMOWv3lLuYEGaecCLB3SSFoXizi KzBJ5Uyv1HsZttd+G0jZw9RVn1BOyb1F+OGyXbhtNRHFVDV9lYvHGKsXkCGY6Mfxfmox 7/2z3kn86v6J9+ib6SQU2qWE92NHQ90S9B2U2NOk6PGfMog7dqcUY44O46aZVHOUv/K7 itHL/g3cfk+FnWeh2kamJvunPu3CXUhx5inBjvh0jLQ+BbYP8D3sutMFgYcSp+wsYUrs 14qSPIgHs7WsyjYktMaguQoSZKzgcbF/HJQdb41uYjDr/aaG4eJhGTRfRmGMBUd8kv5t kc1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t8VcDIf7; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a186-20020a6390c3000000b0053ef4189de6si219540pge.372.2023.05.23.23.52.37; Tue, 23 May 2023 23:52:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t8VcDIf7; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239552AbjEXGwF (ORCPT + 99 others); Wed, 24 May 2023 02:52:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239554AbjEXGvm (ORCPT ); Wed, 24 May 2023 02:51:42 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C792CE66 for ; Tue, 23 May 2023 23:50:54 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-30a4ebbda56so360519f8f.1 for ; Tue, 23 May 2023 23:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684911053; x=1687503053; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=aFwfj9W3H4hXf1ZMZipSHttpXbIUAquQbCC2E/57Oag=; b=t8VcDIf7j/Ki3Q+S0ldfMjka0bFiBeHP68FU/VXdHjVecvRObubQUWg3B3yL6hafTx QlaV48HR+sUr7mk3TsHBXlUJv7qCBorRYn2c2jMyqJMDgvCYFOGpTTrOvHc/rGLiXbbT sUs/d+I4Gqh0vTbT8MjZrccQPP1UZjZVFjc7yXfiIpYQC+cewPKpAs0s7F5VJv0+WqOn kaoxplMfUx2k3ZswdkzJvg6BA6jnCBDukDHzGNLge1JAC9CWd9rXyEl6p49saVtCado7 iWrV1pH5kroG1Clijj5qDQquIkPtJa9uBK0TekODzeA1xp7nfkQhCL0ulRBO+0SU/whI ehbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684911053; x=1687503053; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aFwfj9W3H4hXf1ZMZipSHttpXbIUAquQbCC2E/57Oag=; b=WanwAEcFAgleCxUjL/q6+wQo1BjOHhcY4Ip/SwawuHu1apFwX6OGSjS4m82tlZKo09 QvufyJ9GWTGfC7z58WBeaNrVXDBkqWLnQLHwPawE1DCa3/HZrXQsP+U0IJfDfUcVFPCf ZBmy9znRQgLhP8M09ppRCdktYp8aR2xCgsdPqTBvF20e7whCRW/+UvDNwcTKaxB4f+lV WloH8d6RaqCl3WWOekgR/DBxk/gg7d4DrjMTVYQQXvLznhv3X7iRuzxehsdGVxP24qfT AdAM3Sc7JTcmjhPjdb6j2OjYPugX8Cg0HCdumow4bRLwsVuqWTsbdBuK20HgiYpiPh5H 9g+g== X-Gm-Message-State: AC+VfDw1MLQ40PiNQlxtswx2fUCyKfEPUiNdRgd0042zOgXHDVk3I/S4 3F4AGiBMVsLxvOMXKGEm+hAF1AOqg+dbmYJDcVo= X-Received: by 2002:adf:ffce:0:b0:2ef:b4a9:202f with SMTP id x14-20020adfffce000000b002efb4a9202fmr12683860wrs.69.1684911053279; Tue, 23 May 2023 23:50:53 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id x2-20020adfdcc2000000b003077f3dfcc8sm13210748wrm.32.2023.05.23.23.50.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 23:50:51 -0700 (PDT) Date: Wed, 24 May 2023 09:50:48 +0300 From: Dan Carpenter To: luiz.von.dentz@intel.com Cc: linux-bluetooth@vger.kernel.org Subject: Re: [bug report] Bluetooth: Add initial implementation of BIS connections Message-ID: <744fd69a-c5a3-4e0f-8c47-33096a1cd374@kili.mountain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Wed, May 24, 2023 at 09:38:34AM +0300, Dan Carpenter wrote: > Hello Luiz Augusto von Dentz, > > The patch eca0ae4aea66: "Bluetooth: Add initial implementation of BIS > connections" from Mar 9, 2022, leads to the following Smatch static > checker warning: > > net/bluetooth/hci_conn.c:943 hci_le_remove_cig() > warn: passing zero to 'ERR_PTR' > > net/bluetooth/hci_conn.c > 939 static int hci_le_remove_cig(struct hci_dev *hdev, u8 handle) > ^^^^^^^^^^ > > 940 { > 941 bt_dev_dbg(hdev, "handle 0x%2.2x", handle); > 942 > --> 943 return hci_cmd_sync_queue(hdev, remove_cig_sync, ERR_PTR(handle), NULL); > ^^^^^^ > handle is a u8. It can hold error codes. s/can/cannot/. regards, dan carpenter