From nobody Tue Jun 20 16:29:24 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QlsXj0bncz4gJP8; Tue, 20 Jun 2023 16:29:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QlsXh6F56z4LBD; Tue, 20 Jun 2023 16:29:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278564; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CjPIA/eCNIFBTb8BAYpGHT0L6ONOAf4zwS26KoYffD8=; b=UKdjGB7Zx7AmU1jiCQQZc4SJN/9lCZ3VXYLwOC5SP4amJt/rDBWwoqrvVjeY+PiFQc+z1f yxMEg69opQsTH9cdSqk8pZaDhHwWR1gyyCNFl9ns6c3Ra0DCn2KEeyTtQmbPUXloO2Ioe/ WxtUF7jngN4a3WNjZzrKRut8aZeIT4Rb/vBxZ4F+vkvkc4WFiVeMTlw1P02rjSHinIn8JX RTDOELeLhTsVjzV6e4jQQhevKNt4ZvnTTvwOHIE+SP+j9YDqHqGAjardskmlb3Gfbklbg8 RI36aLjkgwYq8j7sIW1zRIQ/tpP2Mzhf8jJYIrGU7sQrSMamShrmN3D4SeVNDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278564; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CjPIA/eCNIFBTb8BAYpGHT0L6ONOAf4zwS26KoYffD8=; b=wvDwixDuHcZfbFyoN9UN4xjMt0banV3Hl9r7TJq6gKnc7mEnSOtw+iMnOZ9eVYFhUiFYoX P6RfppEbltEFg27LvVMZrl4HyMIf50pS3odNeKsxjvaYG2WeVnaf0Xwq7+LritUIzH7ZFo sVL66gH3IM6F+LXiI7QTaZsua+Vm4xqLJDnUGbFlShc4F5ue8t8D/EU6L6M1cwK7pQPG6z cI/EoxZQ/ytCuqtrSOBsR9bqS2aKP93+WMZB2u65fpUoCeH44r2Z5FD50dZXP4f9PfBmTP UrMYovi+LzhGqECSr9AF8bkN5KtAd7+Lok2no3asC6qgC1wum8eV3dMn1MdajQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687278564; a=rsa-sha256; cv=none; b=Cf/xdUL48D51lZgdV7fi/E31ikYyB5WrovmZ3SEuJCqEDEGFfDgsXATUFrjQ4TpuiK/eDU AQOVj7PiDR0j3FUCtkvjlbKfpG9WsINE2odQhbctdH0Q19wTVtYOYcXp3fYXK29IwIOsrA QgYWrmMMOI5V5G9wpXwZm1OQnbyPoAKV0MylbC+gGbGCmhkgXXoyALY6L1oOryEOmvo/JY OqSmsszzlXQ77bbwURjnJbeWwa6CSmlXWaip17RgPwGQrXcZMZ9KxXY6YD0sOY4FPHxikb /3z2kL+gnTqjf3QyL0GbKn9B+XddN67w90Fb/Z3F4Qe5Yxhnm7mmoorRqYwXyw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QlsXh4kpCz166S; Tue, 20 Jun 2023 16:29:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35KGTOBO045199; Tue, 20 Jun 2023 16:29:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35KGTO1N045198; Tue, 20 Jun 2023 16:29:24 GMT (envelope-from git) Date: Tue, 20 Jun 2023 16:29:24 GMT Message-Id: <202306201629.35KGTO1N045198@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 9d7c4486e29b - main - bluetooth: Remove set but unused variable. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9d7c4486e29b13ba0df0a56ce016cdc169b98550 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=9d7c4486e29b13ba0df0a56ce016cdc169b98550 commit 9d7c4486e29b13ba0df0a56ce016cdc169b98550 Author: John Baldwin AuthorDate: 2023-06-20 16:28:59 +0000 Commit: John Baldwin CommitDate: 2023-06-20 16:28:59 +0000 bluetooth: Remove set but unused variable. Reported by: GCC --- usr.sbin/bluetooth/ath3kfw/ath3k_fw.c | 2 -- usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/usr.sbin/bluetooth/ath3kfw/ath3k_fw.c b/usr.sbin/bluetooth/ath3kfw/ath3k_fw.c index 2c480044c2d7..4aa1add64718 100644 --- a/usr.sbin/bluetooth/ath3kfw/ath3k_fw.c +++ b/usr.sbin/bluetooth/ath3kfw/ath3k_fw.c @@ -49,7 +49,6 @@ ath3k_fw_read(struct ath3k_firmware *fw, const char *fwname) struct stat sb; unsigned char *buf; ssize_t r; - int i; fd = open(fwname, O_RDONLY); if (fd < 0) { @@ -70,7 +69,6 @@ ath3k_fw_read(struct ath3k_firmware *fw, const char *fwname) return (0); } - i = 0; /* XXX handle partial reads */ r = read(fd, buf, sb.st_size); if (r < 0) { diff --git a/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c b/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c index 5fe270c7f059..cdb84b44b0f4 100644 --- a/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c +++ b/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c @@ -50,7 +50,6 @@ iwmbt_fw_read(struct iwmbt_firmware *fw, const char *fwname) struct stat sb; unsigned char *buf; ssize_t r; - int i; fd = open(fwname, O_RDONLY); if (fd < 0) { @@ -71,7 +70,6 @@ iwmbt_fw_read(struct iwmbt_firmware *fw, const char *fwname) return (0); } - i = 0; /* XXX handle partial reads */ r = read(fd, buf, sb.st_size); if (r < 0) {