Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1424994rwb; Tue, 27 Sep 2022 12:54:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7BxZ09pKOXcfvRqKZlek+nlDil/PUQXxNjAuLROb80ZI7r2tdzq3jsu4Uu7gEfx0PQcw5I X-Received: by 2002:a05:6a00:190d:b0:550:6db3:b9be with SMTP id y13-20020a056a00190d00b005506db3b9bemr31034199pfi.1.1664308489962; Tue, 27 Sep 2022 12:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664308489; cv=none; d=google.com; s=arc-20160816; b=mB95HtAcPsucsxz4aDTIyE5hiWk8tIlAovBURtzEx4DbrF0/5HsSczmA88k9+n9ktG OZkMXifU3tQ5tk+MjyxFsoJ/x+hq29t7ZPOaQ0rfnIeX4IyWlueB1gh0qomT719GI0Y4 tja1L9oLGCwQeKJ0Pyvj/H+RtFMUQlzZZPl3R3mloSLBXIIZfqQA+xAGlxAPVvrBlH6N gLuh+H8HMCnKcze+iXesGhsCtMwvu0+T7uXoCV0EoIcI9F6XgwBNW3gckD14P5RbVRiy naLVElKwRLDQ053/u0wDi5lhQi9vw9IuwnEFyw1wVjKq+Vb6CW8VwDSAjPhlhUhKEvpf aReA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:subject :message-id:to:from:date:dkim-signature; bh=ApUHOVgGLA0+iu08GZme2Nh5FfaHj29uko1CxD1QMnw=; b=nLacWOzeL+MeJgPSYI8O9UkZbCv+eKDV3cj1O7L0JKYb6IMOH9BZ0tetZhGToI9j2F qvYcYfpvV0PmyHfTRvOgSZpInA1H4AQ4eYQ/LRpcfRGnd+OLy4Oyw7a3jyoQKqMeGdYg aAls0aNsX2CNAVTLzLal7FUXdFTd4T0JquF57VDUn2MCKmOSiRLPm13ySSk2ApKZOJkv BaUeyfn7LxygIIMR6h2EqfQwpd5neXptLkUXxjBMSJvCBCfhxT//mwpxn+CPiYrewY4i GVCNebBRgLEIByxbtiiAK+ufkVvB0gyZjw1XyhNdNl6RhQvxTovtt9xxO+DbJgGu/Jwl UlGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@github.com header.s=pf2014 header.b=oFuleKnp; 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=REJECT sp=REJECT dis=NONE) header.from=github.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17-20020a170902f65100b00172adace273si2853453plg.535.2022.09.27.12.54.26; Tue, 27 Sep 2022 12:54:49 -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=@github.com header.s=pf2014 header.b=oFuleKnp; 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=REJECT sp=REJECT dis=NONE) header.from=github.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229940AbiI0Tne (ORCPT + 99 others); Tue, 27 Sep 2022 15:43:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231393AbiI0Tnd (ORCPT ); Tue, 27 Sep 2022 15:43:33 -0400 Received: from smtp.github.com (out-21.smtp.github.com [192.30.252.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7632318D0C0 for ; Tue, 27 Sep 2022 12:43:32 -0700 (PDT) Received: from github.com (hubbernetes-node-61c37c6.ac4-iad.github.net [10.52.208.19]) by smtp.github.com (Postfix) with ESMTPA id CAE485200C8 for ; Tue, 27 Sep 2022 12:43:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1664307811; bh=ApUHOVgGLA0+iu08GZme2Nh5FfaHj29uko1CxD1QMnw=; h=Date:From:To:Subject:From; b=oFuleKnp6XZNLWt5bS9xOSrAZmwUCHv99l+XVGLh1QamkOGFSS20Io8nyyfHH6pLs 8IwgwBhQXWLAlaBRLDuOaRknQ24KXKpXwAfXyGqs4Bhj4DosE16GJz/Nr8tfKi0mTX PBkA7nuFOEYi7w4LKCJcX3YRthzjtGIOWXk7ijEI= Date: Tue, 27 Sep 2022 12:43:31 -0700 From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Message-ID: Subject: [bluez/bluez] de1901: rctest: Fix scan-build warning Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GitHub-Recipient-Address: linux-bluetooth@vger.kernel.org X-Auto-Response-Suppress: All X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Branch: refs/heads/master Home: https://github.com/bluez/bluez Commit: de1901565979b5f56effc34b03594bee4f757f7d https://github.com/bluez/bluez/commit/de1901565979b5f56effc34b03594bee4f757f7d Author: Luiz Augusto von Dentz Date: 2022-09-27 (Tue, 27 Sep 2022) Changed paths: M tools/rctest.c Log Message: ----------- rctest: Fix scan-build warning This fixes the following warning: tools/rctest.c:131:2: warning: 1st function call argument is an uninitialized value [core.CallAndMessage] sdp_list_free(protos, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Commit: 643b074d7dc7f722588192eea852ce2e0d0584ae https://github.com/bluez/bluez/commit/643b074d7dc7f722588192eea852ce2e0d0584ae Author: Luiz Augusto von Dentz Date: 2022-09-27 (Tue, 27 Sep 2022) Changed paths: M monitor/analyze.c Log Message: ----------- monitor/analyze: Fix scan-build warnings This fixes the following warnings: monitor/analyze.c:381:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:382:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:398:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(*evt); ^ ~~~~~~~~~~~~ monitor/analyze.c:399:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(*evt); ^ ~~~~~~~~~~~~ monitor/analyze.c:418:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(*evt); ^ ~~~~~~~~~~~~ monitor/analyze.c:419:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(*evt); ^ ~~~~~~~~~~~~ monitor/analyze.c:527:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(subtype); ^ ~~~~~~~~~~~~~~~ monitor/analyze.c:528:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(subtype); ^ ~~~~~~~~~~~~~~~ monitor/analyze.c:629:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:630:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:646:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:647:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:710:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:711:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(*hdr); ^ ~~~~~~~~~~~~ Commit: 293d670fb0ec51b69cdd0b9bf625b1e4d3a7975f https://github.com/bluez/bluez/commit/293d670fb0ec51b69cdd0b9bf625b1e4d3a7975f Author: Luiz Augusto von Dentz Date: 2022-09-27 (Tue, 27 Sep 2022) Changed paths: M monitor/packet.c Log Message: ----------- monitor/packet: Fix scan-build warnings This fixes the following warnings: monitor/packet.c:410:4: warning: Value stored to 'ts_pos' is never read [deadcode.DeadStores] ts_pos += n; ^ ~ monitor/packet.c:455:4: warning: Value stored to 'pos' is never read [deadcode.DeadStores] pos += n; ^ ~ monitor/packet.c:7477:2: warning: Value stored to 'mask' is never read [deadcode.DeadStores] mask = tx_phys; ^ ~~~~~~~ monitor/packet.c:7485:2: warning: Value stored to 'mask' is never read [deadcode.DeadStores] mask = rx_phys; ^ ~~~~~~~ monitor/packet.c:11229:3: warning: Value stored to 'str' is never read [deadcode.DeadStores] str = "AoA Constant Tone Extension"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ monitor/packet.c:11232:3: warning: Value stored to 'str' is never read [deadcode.DeadStores] str = "AoA Constant Tone Extension with 1us slots"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ monitor/packet.c:11235:3: warning: Value stored to 'str' is never read [deadcode.DeadStores] str = "AoD Constant Tone Extension with 2us slots"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ monitor/packet.c:11238:3: warning: Value stored to 'str' is never read [deadcode.DeadStores] str = "No Constant Tone Extension"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ monitor/packet.c:11241:3: warning: Value stored to 'str' is never read [deadcode.DeadStores] str = "Reserved"; ^ ~~~~~~~~~~ monitor/packet.c:11242:3: warning: Value stored to 'color_on' is never read [deadcode.DeadStores] color_on = COLOR_RED; ^ ~~~~~~~~~ Compare: https://github.com/bluez/bluez/compare/d763bfa4d089...293d670fb0ec